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 | 9b36bdd41c992e4356a446cfb570206674c13275 (patch) | |
tree | f089bc444b5ad531424021fe57a7e748c0ee9026 /kdesudo/kdesudo.cpp | |
parent | 044b34abd60d7d5e67c21de927a49da7ef669c12 (diff) | |
download | tdesudo-9b36bdd41c992e4356a446cfb570206674c13275.tar.gz tdesudo-9b36bdd41c992e4356a446cfb570206674c13275.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kdesudo@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdesudo/kdesudo.cpp')
-rw-r--r-- | kdesudo/kdesudo.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/kdesudo/kdesudo.cpp b/kdesudo/kdesudo.cpp index 7d48de5..6936724 100644 --- a/kdesudo/kdesudo.cpp +++ b/kdesudo/kdesudo.cpp @@ -329,7 +329,7 @@ void KdeSudo::receivedOut(KProcess*, char*buffer, int buflen) static int badpass = 0; - if (strOut.tqfind("Sorry, try again")!=-1) + if (strOut.find("Sorry, try again")!=-1) { badpass++; if (badpass>2) @@ -339,37 +339,37 @@ void KdeSudo::receivedOut(KProcess*, char*buffer, int buflen) kapp->quit(); } } - if (strOut.tqfind("command not found")!=-1) + if (strOut.find("command not found")!=-1) { bError=true; KMessageBox::error(this, i18n("Command not found!")); kapp->quit(); } - if (strOut.tqfind("is not in the sudoers file")!=-1) + if (strOut.find("is not in the sudoers file")!=-1) { bError=true; KMessageBox::error(this, i18n("Your username is unknown to sudo!")); kapp->quit(); } - if (strOut.tqfind("is not allowed to execute")!=-1) + if (strOut.find("is not allowed to execute")!=-1) { bError=true; KMessageBox::error(this, i18n("Your user is not allowed to run the specified command!")); kapp->quit(); } - if (strOut.tqfind("is not allowed to run sudo on")!=-1) + if (strOut.find("is not allowed to run sudo on")!=-1) { bError=true; KMessageBox::error(this, i18n("Your user is not allowed to run sudo on this host!")); kapp->quit(); } - if (strOut.tqfind("may not run sudo on")!=-1) + if (strOut.find("may not run sudo on")!=-1) { bError=true; KMessageBox::error(this, i18n("Your user is not allowed to run sudo on this host!")); kapp->quit(); } - if ((strOut.tqfind("passprompt")!=-1) || (strOut.tqfind("PIN (CHV2)")!=-1)) + if ((strOut.find("passprompt")!=-1) || (strOut.find("PIN (CHV2)")!=-1)) { this->clearPassword(); this->show(); |