summaryrefslogtreecommitdiffstats
path: root/libkdepim/tests/testdistrlist.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libkdepim/tests/testdistrlist.cpp')
-rw-r--r--libkdepim/tests/testdistrlist.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/libkdepim/tests/testdistrlist.cpp b/libkdepim/tests/testdistrlist.cpp
index b446a5a3..f588f9a9 100644
--- a/libkdepim/tests/testdistrlist.cpp
+++ b/libkdepim/tests/testdistrlist.cpp
@@ -97,9 +97,9 @@ void TestDistrList::runAll()
bool TestDistrList::check(const TQString& txt, TQString a, TQString b)
{
if (a.isEmpty())
- a = TQString::null;
+ a = TQString();
if (b.isEmpty())
- b = TQString::null;
+ b = TQString();
if (a == b) {
kdDebug() << txt << " : checking '" << a << "' against expected value '" << b << "'... " << "ok" << endl;
}
@@ -123,8 +123,8 @@ static bool removeDirAndContentsRecursively( const TQString & path )
d.setPath( path );
d.setFilter( TQDir::Files | TQDir::Dirs | TQDir::Hidden );
- const QFileInfoList *list = d.entryInfoList();
- QFileInfoListIterator it( *list );
+ const TQFileInfoList *list = d.entryInfoList();
+ TQFileInfoListIterator it( *list );
TQFileInfo *fi;
while ( (fi = it.current()) != 0 ) {
@@ -227,7 +227,7 @@ void TestDistrList::testInsertEntry()
DistributionList::Entry::List entries = dl.entries( ab );
check( "entries count", TQString::number( entries.count() ), "3" );
check( "first entry", entries[0].addressee.name(), "addr1" );
- check( "first entry", entries[0].email, TQString::null );
+ check( "first entry", entries[0].email, TQString() );
check( "second entry", entries[1].addressee.name(), "addr2" );
check( "second entry", entries[1].email, "addr2-alternate@kde.org" );
check( "third entry", entries[2].addressee.name(), "addr2" );