summaryrefslogtreecommitdiffstats
path: root/kdesu
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
commit6e21bc798ba1066147d69dcc2d5c222ffafb9a90 (patch)
tree36613dfe2f86f8ccb96a30f3880507341228eeb0 /kdesu
parent1e9fe867b0def399c63c42f35e83c3575e91ff83 (diff)
downloadtdelibs-6e21bc798ba1066147d69dcc2d5c222ffafb9a90.tar.gz
tdelibs-6e21bc798ba1066147d69dcc2d5c222ffafb9a90.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdesu')
-rw-r--r--kdesu/client.cpp8
-rw-r--r--kdesu/kcookie.cpp2
-rw-r--r--kdesu/process.cpp6
-rw-r--r--kdesu/ssh.cpp4
-rw-r--r--kdesu/stub.cpp2
5 files changed, 11 insertions, 11 deletions
diff --git a/kdesu/client.cpp b/kdesu/client.cpp
index b5c9361aa..030053da0 100644
--- a/kdesu/client.cpp
+++ b/kdesu/client.cpp
@@ -59,7 +59,7 @@ KDEsuClient::KDEsuClient()
}
// strip the screen number from the display
- display.tqreplace(TQRegExp("\\.[0-9]+$"), "");
+ display.replace(TQRegExp("\\.[0-9]+$"), "");
#else
TQCString display("QWS");
#endif
@@ -169,13 +169,13 @@ TQCString KDEsuClient::escape(const TQCString &str)
{
TQCString copy = str;
int n = 0;
- while ((n = copy.tqfind("\\", n)) != -1)
+ while ((n = copy.find("\\", n)) != -1)
{
copy.insert(n, '\\');
n += 2;
}
n = 0;
- while ((n = copy.tqfind("\"", n)) != -1)
+ while ((n = copy.find("\"", n)) != -1)
{
copy.insert(n, '\\');
n += 2;
@@ -313,7 +313,7 @@ TQValueList<TQCString> KDEsuClient::getKeys(const TQCString &group)
// kdDebug(900) << "Found a matching entry: " << reply << endl;
while (1)
{
- pos = reply.tqfind( '\007', index );
+ pos = reply.find( '\007', index );
if( pos == -1 )
{
if( index == 0 )
diff --git a/kdesu/kcookie.cpp b/kdesu/kcookie.cpp
index 60ddcfe3e..f60ec7314 100644
--- a/kdesu/kcookie.cpp
+++ b/kdesu/kcookie.cpp
@@ -54,7 +54,7 @@ QCStringList KCookie::split(const TQCString &line, char ch)
QCStringList result;
int i=0, pos;
- while ((pos = line.tqfind(ch, i)) != -1)
+ while ((pos = line.find(ch, i)) != -1)
{
result += line.mid(i, pos-i);
i = pos+1;
diff --git a/kdesu/process.cpp b/kdesu/process.cpp
index 00c320a12..f5fb7d34e 100644
--- a/kdesu/process.cpp
+++ b/kdesu/process.cpp
@@ -179,7 +179,7 @@ TQCString PtyProcess::readLine(bool block)
if (!m_Inbuf.isEmpty())
{
- pos = m_Inbuf.tqfind('\n');
+ pos = m_Inbuf.find('\n');
if (pos == -1)
{
ret = m_Inbuf;
@@ -228,7 +228,7 @@ TQCString PtyProcess::readLine(bool block)
buf[nbytes] = '\000';
m_Inbuf += buf;
- pos = m_Inbuf.tqfind('\n');
+ pos = m_Inbuf.find('\n');
if (pos == -1)
{
ret = m_Inbuf;
@@ -513,7 +513,7 @@ int PtyProcess::waitForChild()
if (!m_Exit.isEmpty())
{
// match exit string only at line starts
- int pos = output.tqfind(m_Exit.data());
+ int pos = output.find(m_Exit.data());
if ((pos >= 0) && ((pos == 0 && lineStart) || (output.at (pos - 1) == '\n')))
{
kill(m_Pid, SIGTERM);
diff --git a/kdesu/ssh.cpp b/kdesu/ssh.cpp
index 03051b826..d39634ac5 100644
--- a/kdesu/ssh.cpp
+++ b/kdesu/ssh.cpp
@@ -156,12 +156,12 @@ TQCString SshProcess::dcopForward()
if (srv.isEmpty())
return result;
- int i = srv.tqfind('/');
+ int i = srv.find('/');
if (i == -1)
return result;
if (srv.left(i) != "tcp")
return result;
- int j = srv.tqfind(':', ++i);
+ int j = srv.find(':', ++i);
if (j == -1)
return result;
TQCString host = srv.mid(i, j-i);
diff --git a/kdesu/stub.cpp b/kdesu/stub.cpp
index c7f39c4a8..2af171d72 100644
--- a/kdesu/stub.cpp
+++ b/kdesu/stub.cpp
@@ -145,7 +145,7 @@ int StubProcess::ConverseStub(int check)
it != env.end();
++it )
{
- if( (*it).tqfind( "DESKTOP_STARTUP_ID=" ) == 0 )
+ if( (*it).find( "DESKTOP_STARTUP_ID=" ) == 0 )
tmp = (*it).mid( strlen( "DESKTOP_STARTUP_ID=" ));
}
if( tmp.isEmpty())