From 4a25ca5c80d9b88fdc1a0d44d1db47da47206899 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 10 Aug 2011 06:08:18 +0000 Subject: rename the following methods: tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeadmin@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- lilo-config/common/tests/String.cc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'lilo-config/common/tests') diff --git a/lilo-config/common/tests/String.cc b/lilo-config/common/tests/String.cc index cfd9744..7b0b60e 100644 --- a/lilo-config/common/tests/String.cc +++ b/lilo-config/common/tests/String.cc @@ -54,20 +54,20 @@ int main(int argc, char **argv) cerr << "regex() seems to be broken." << endl; bugs++; } - if(!s.tqcontains("Red Hat")) { - cerr << "tqcontains() seems to be broken." << endl; + if(!s.contains("Red Hat")) { + cerr << "contains() seems to be broken." << endl; bugs++; } - if(t.tqreplace("Microsoft", "Windows", false) != "Windows sucks! Destroy Microsoft! Microsoft must die!") { - cerr << "tqreplace() [once] seems to be broken." << endl; + if(t.replace("Microsoft", "Windows", false) != "Windows sucks! Destroy Microsoft! Microsoft must die!") { + cerr << "replace() [once] seems to be broken." << endl; bugs++; } - if(t.tqreplace("Microsoft", "Windows") != "Windows sucks! Destroy Windows! Windows must die!") { - cerr << "tqreplace() [all] seems to be broken." << endl; + if(t.replace("Microsoft", "Windows") != "Windows sucks! Destroy Windows! Windows must die!") { + cerr << "replace() [all] seems to be broken." << endl; bugs++; } - if(u.tqreplace("Microsoft", "Windows") != "Windows sucks!") { - cerr << "tqreplace() [all, test case 2] seems to be broken." << endl; + if(u.replace("Microsoft", "Windows") != "Windows sucks!") { + cerr << "replace() [all, test case 2] seems to be broken." << endl; bugs++; } -- cgit v1.2.1