diff options
Diffstat (limited to 'kompare/libdiff2/diffmodel.cpp')
-rw-r--r-- | kompare/libdiff2/diffmodel.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kompare/libdiff2/diffmodel.cpp b/kompare/libdiff2/diffmodel.cpp index 438055c6..cd348dfc 100644 --- a/kompare/libdiff2/diffmodel.cpp +++ b/kompare/libdiff2/diffmodel.cpp @@ -79,10 +79,10 @@ void DiffModel::splitSourceInPathAndFileName() { int pos; - if( ( pos = m_source.tqfindRev( "/" ) ) >= 0 ) + if( ( pos = m_source.findRev( "/" ) ) >= 0 ) m_sourcePath = m_source.mid( 0, pos+1 ); - if( ( pos = m_source.tqfindRev( "/" ) ) >= 0 ) + if( ( pos = m_source.findRev( "/" ) ) >= 0 ) m_sourceFile = m_source.mid( pos+1, m_source.length() - pos ); else m_sourceFile = m_source; @@ -94,10 +94,10 @@ void DiffModel::splitDestinationInPathAndFileName() { int pos; - if( ( pos = m_destination.tqfindRev( "/" ) )>= 0 ) + if( ( pos = m_destination.findRev( "/" ) )>= 0 ) m_destinationPath = m_destination.mid( 0, pos+1 ); - if( ( pos = m_destination.tqfindRev( "/" ) ) >= 0 ) + if( ( pos = m_destination.findRev( "/" ) ) >= 0 ) m_destinationFile = m_destination.mid( pos+1, m_destination.length() - pos ); else m_destinationFile = m_source; @@ -393,10 +393,10 @@ bool DiffModel::setSelectedDifference( Difference* diff ) if ( diff != m_selectedDifference ) { - if ( ( m_differences.tqfindIndex( diff ) ) == -1 ) + if ( ( m_differences.findIndex( diff ) ) == -1 ) return false; // Dont set m_diffIndex if it cant be found - m_diffIndex = m_differences.tqfindIndex( diff ); + m_diffIndex = m_differences.findIndex( diff ); kdDebug( 8101 ) << "m_diffIndex = " << m_diffIndex << endl; m_selectedDifference = diff; } |