summaryrefslogtreecommitdiffstats
path: root/kdesu/client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kdesu/client.cpp')
-rw-r--r--kdesu/client.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/kdesu/client.cpp b/kdesu/client.cpp
index 5261886fc..30d6cf3e3 100644
--- a/kdesu/client.cpp
+++ b/kdesu/client.cpp
@@ -59,7 +59,7 @@ KDEsuClient::KDEsuClient()
}
// strip the screen number from the display
- display.replace(TQRegExp("\\.[0-9]+$"), "");
+ display.tqreplace(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.find("\\", n)) != -1)
+ while ((n = copy.tqfind("\\", n)) != -1)
{
copy.insert(n, '\\');
n += 2;
}
n = 0;
- while ((n = copy.find("\"", n)) != -1)
+ while ((n = copy.tqfind("\"", 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.find( '\007', index );
+ pos = reply.tqfind( '\007', index );
if( pos == -1 )
{
if( index == 0 )
@@ -332,7 +332,7 @@ TQValueList<TQCString> KDEsuClient::getKeys(const TQCString &group)
return list;
}
-bool KDEsuClient::findGroup(const TQCString &group)
+bool KDEsuClient::tqfindGroup(const TQCString &group)
{
TQCString cmd = "CHKG ";
cmd += escape(group);
@@ -385,7 +385,7 @@ int KDEsuClient::stopServer()
return command("STOP\n");
}
-static TQString findDaemon()
+static TQString tqfindDaemon()
{
TQString daemon = locate("bin", "kdesud");
if (daemon.isEmpty()) // if not in KDEDIRS, rely on PATH
@@ -401,7 +401,7 @@ static TQString findDaemon()
bool KDEsuClient::isServerSGID()
{
if (d->daemon.isEmpty())
- d->daemon = findDaemon();
+ d->daemon = tqfindDaemon();
if (d->daemon.isEmpty())
return false;
@@ -417,7 +417,7 @@ bool KDEsuClient::isServerSGID()
int KDEsuClient::startServer()
{
if (d->daemon.isEmpty())
- d->daemon = findDaemon();
+ d->daemon = tqfindDaemon();
if (d->daemon.isEmpty())
return -1;