diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
commit | 4a25ca5c80d9b88fdc1a0d44d1db47da47206899 (patch) | |
tree | 8a1d1e893a80df8ad5233802c2b0e39220b86168 /kpackage/slackInterface.cpp | |
parent | 441266d591a9064dd619da0e1bd49b871d6a9c70 (diff) | |
download | tdeadmin-4a25ca5c80d9b88fdc1a0d44d1db47da47206899.tar.gz tdeadmin-4a25ca5c80d9b88fdc1a0d44d1db47da47206899.zip |
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
Diffstat (limited to 'kpackage/slackInterface.cpp')
-rw-r--r-- | kpackage/slackInterface.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
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); |