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 --- kpackage/slackInterface.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'kpackage/slackInterface.cpp') diff --git a/kpackage/slackInterface.cpp b/kpackage/slackInterface.cpp index 49e7c64..ae51d7b 100644 --- a/kpackage/slackInterface.cpp +++ b/kpackage/slackInterface.cpp @@ -148,7 +148,7 @@ bool SLACK::isType(char *buf, const TQString &) bool SLACK::parseName(const TQString &name, TQString *n, TQString *v) { int s1; - s1 = name.tqfindRev('.'); + s1 = name.findRev('.'); if (s1 > 0) { *n = name.left(s1); v = new TQString(""); @@ -432,15 +432,15 @@ packageInfo *SLACK::collectInfo(const char *_inp, int insState) } else if (!strcmp("package location",str)) { TQString sl = xstr; if (insState != INSTALLED) { - int sls = sl.tqfindRev("/"); + int sls = sl.findRev("/"); if (sls >= 0) { TQRegExp num("[0-9][0-9]*"); - int slf = sl.tqfind(num,sls); + int slf = sl.find(num,sls); if (slf >= 0) { sls++; TQString gt = sl.mid(sls,slf-sls); - if (trl->tqfind(gt)) { - gt = *trl->tqfind(gt); + if (trl->find(gt)) { + gt = *trl->find(gt); } a.insert("group",gt); } @@ -643,7 +643,7 @@ TQStringList SLACK::FindFile(const TQString &name, bool) } } while (fgets(linebuf,sizeof(linebuf),file)) { - if (TQString(TQString::fromLocal8Bit(linebuf)).tqfind(name) != -1) { + if (TQString(TQString::fromLocal8Bit(linebuf)).find(name) != -1) { st = "/"; st += linebuf; st.truncate(st.length() -1); -- cgit v1.2.1