diff options
Diffstat (limited to 'kmail/tests')
-rw-r--r-- | kmail/tests/messagedicttests.cpp | 10 | ||||
-rw-r--r-- | kmail/tests/mimelibtests.cpp | 8 | ||||
-rw-r--r-- | kmail/tests/utiltests.cpp | 4 |
3 files changed, 11 insertions, 11 deletions
diff --git a/kmail/tests/messagedicttests.cpp b/kmail/tests/messagedicttests.cpp index e11bc3915..cdb24f6d8 100644 --- a/kmail/tests/messagedicttests.cpp +++ b/kmail/tests/messagedicttests.cpp @@ -42,7 +42,7 @@ void MessageDictTester::testKMDictInsert() p("Insert: "); KMDictItem *item = new KMDictItem(); m_dict->insert( 12345, item ); - KMDictItem *found = m_dict->tqfind( 12345 ); + KMDictItem *found = m_dict->find( 12345 ); CHECK( item, found); } @@ -50,7 +50,7 @@ void MessageDictTester::testKMDictRemove() { p("Remove: "); m_dict->remove( 12345 ); - KMDictItem *item = m_dict->tqfind( 12345 ); + KMDictItem *item = m_dict->find( 12345 ); CHECK( item, (KMDictItem*)0 ); } @@ -65,13 +65,13 @@ void MessageDictTester::testKMDictClear() void MessageDictTester::testKMDictReplace() { - p("Check tqreplace: "); + p("Check replace: "); m_dict->init( 31 ); KMDictItem *oldItem = new KMDictItem(); KMDictItem *newItem = new KMDictItem(); m_dict->insert( 12345, oldItem ); - m_dict->tqreplace( 12345, newItem ); - KMDictItem *found = m_dict->tqfind( 12345 ); + m_dict->replace( 12345, newItem ); + KMDictItem *found = m_dict->find( 12345 ); CHECK( found, newItem ); } diff --git a/kmail/tests/mimelibtests.cpp b/kmail/tests/mimelibtests.cpp index 34a4f4692..b152fdcf6 100644 --- a/kmail/tests/mimelibtests.cpp +++ b/kmail/tests/mimelibtests.cpp @@ -39,8 +39,8 @@ KUNITTEST_MODULE_REGISTER_TESTER( MimeLibTester ); static TQString makePrintable( const TQCString& str ) { TQString a = str; - a = a.tqreplace( '\r', "\\r" ); - a = a.tqreplace( '\n', "\\n" ); + a = a.replace( '\r', "\\r" ); + a = a.replace( '\n', "\\n" ); return a; } #endif @@ -48,8 +48,8 @@ static TQString makePrintable( const TQCString& str ) static TQString makePrintable( const DwString& str ) { TQString a = KMail::Util::CString( str ); // ## we assume latin1 - a = a.tqreplace( '\r', "\\r" ); - a = a.tqreplace( '\n', "\\n" ); + a = a.replace( '\r', "\\r" ); + a = a.replace( '\n', "\\n" ); return a; } diff --git a/kmail/tests/utiltests.cpp b/kmail/tests/utiltests.cpp index ec6c13543..d0b3135be 100644 --- a/kmail/tests/utiltests.cpp +++ b/kmail/tests/utiltests.cpp @@ -30,8 +30,8 @@ void UtilTester::tearDown() static TQString makePrintable( const TQCString& str ) { TQString a = str; - a = a.tqreplace( '\r', "\\r" ); - a = a.tqreplace( '\n', "\\n" ); + a = a.replace( '\r', "\\r" ); + a = a.replace( '\n', "\\n" ); return a; } static TQString makePrintable( const TQByteArray& arr ) |