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/kpPty.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/kpPty.cpp')
-rw-r--r-- | kpackage/kpPty.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kpackage/kpPty.cpp b/kpackage/kpPty.cpp index bd6062a..23eb15f 100644 --- a/kpackage/kpPty.cpp +++ b/kpackage/kpPty.cpp @@ -257,7 +257,7 @@ void kpPty::breakUpCmd(const TQString &cmd) if ((*it)[0] == '\'') { // Start of quoted string s = *it; if ((*it)[lastPt] == '\'') { // Also End of quoted string - s.tqreplace("'",""); + s.replace("'",""); (*pty) << s; quote = FALSE; } else { @@ -266,7 +266,7 @@ void kpPty::breakUpCmd(const TQString &cmd) } } else if ((*it)[lastPt] == '\'') { // End of quoted string s += *it; - s.tqreplace("'",""); + s.replace("'",""); (*pty) << s; quote = FALSE; } else if (quote) { @@ -345,7 +345,7 @@ void kpPty::finish(int ret) if (!retList.empty()) { int p; l = retList.fromLast(); - if ((p = (*l).tqfind("RESULT=")) >= 0) { + if ((p = (*l).find("RESULT=")) >= 0) { ret = (*l).mid(p+7).toInt(0,10); retList.remove(l); // Remove return code } else { @@ -356,7 +356,7 @@ void kpPty::finish(int ret) if (!retList.empty()) { l = retList.begin(); if ( l != retList.end()) { - if ((*l).tqfind("RESULT=") >= 0) { + if ((*l).find("RESULT=") >= 0) { retList.remove(l); // Remove command at start } } @@ -396,7 +396,7 @@ void kpPty::readLines() stext.truncate(stext.length()-1); } - i = stext.tqfindRev('\r'); + i = stext.findRev('\r'); if (i > -1) { stext = stext.mid(i+1); } |