diff options
Diffstat (limited to 'kmymoney2/kmymoneytest.cpp')
-rw-r--r-- | kmymoney2/kmymoneytest.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kmymoney2/kmymoneytest.cpp b/kmymoney2/kmymoneytest.cpp index fd89b69..c4a997f 100644 --- a/kmymoney2/kmymoneytest.cpp +++ b/kmymoney2/kmymoneytest.cpp @@ -73,11 +73,11 @@ class MyProgressListener : public CppUnit::TextTestProgressListener { void startTest(CppUnit::Test *test) { TQString name = test->getName().c_str(); - if(name.tqfind('.') != -1) { // in CPPUNIT 1.8.0 + if(name.find('.') != -1) { // in CPPUNIT 1.8.0 name = name.mid(2); // cut off first 2 chars - name = name.left(name.tqfind('.')); - } else if(name.tqfind("::") != -1) { // in CPPUNIT 1.9.14 - name = name.left(name.tqfind("::")); + name = name.left(name.find('.')); + } else if(name.find("::") != -1) { // in CPPUNIT 1.9.14 + name = name.left(name.find("::")); } if(m_name != name) { if(m_name != "") |