From 9b36bdd41c992e4356a446cfb570206674c13275 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 10 Aug 2011 06:08:18 +0000 Subject: [PATCH] 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 --- kdesudo/kdesudo.cpp | 14 +++++++------- 1 file 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();