summaryrefslogtreecommitdiffstats
path: root/kmail/tests
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
commit4c6f8d69e2d1501837affb472c4eb8fec4462240 (patch)
tree766a8ad7939fcf3eec534184c36bd0e0f80489e2 /kmail/tests
parent469cc56a805bd3d6940d54adbef554877c29853c (diff)
downloadtdepim-4c6f8d69e2d1501837affb472c4eb8fec4462240.tar.gz
tdepim-4c6f8d69e2d1501837affb472c4eb8fec4462240.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmail/tests')
-rw-r--r--kmail/tests/messagedicttests.cpp10
-rw-r--r--kmail/tests/mimelibtests.cpp8
-rw-r--r--kmail/tests/utiltests.cpp4
3 files changed, 11 insertions, 11 deletions
diff --git a/kmail/tests/messagedicttests.cpp b/kmail/tests/messagedicttests.cpp
index e11bc391..cdb24f6d 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 34a4f469..b152fdcf 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 ec6c1354..d0b3135b 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 )