summaryrefslogtreecommitdiffstats
path: root/kpackage/kpPty.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-18 20:34:22 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-18 20:34:22 +0000
commitb09bffed6b43262948018dfb0f11890850ddf7c1 (patch)
tree138696bfcc7ac01070d0e8ecaa1cdf94611a2bd8 /kpackage/kpPty.cpp
parent6d43944a7130b9d1b4ae3fba37b774aced8612cf (diff)
downloadtdeadmin-b09bffed6b43262948018dfb0f11890850ddf7c1.tar.gz
tdeadmin-b09bffed6b43262948018dfb0f11890850ddf7c1.zip
TQt4 port kdeadmin
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeadmin@1237416 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kpackage/kpPty.cpp')
-rw-r--r--kpackage/kpPty.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/kpackage/kpPty.cpp b/kpackage/kpPty.cpp
index 23eb15f..bd6062a 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.replace("'","");
+ s.tqreplace("'","");
(*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.replace("'","");
+ s.tqreplace("'","");
(*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).find("RESULT=")) >= 0) {
+ if ((p = (*l).tqfind("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).find("RESULT=") >= 0) {
+ if ((*l).tqfind("RESULT=") >= 0) {
retList.remove(l); // Remove command at start
}
}
@@ -396,7 +396,7 @@ void kpPty::readLines()
stext.truncate(stext.length()-1);
}
- i = stext.findRev('\r');
+ i = stext.tqfindRev('\r');
if (i > -1) {
stext = stext.mid(i+1);
}