diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:33:34 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:33:34 +0000 |
commit | c663b6440964f6ac48027143ac9e63298991f9d0 (patch) | |
tree | 6d8b0c5a5f9db1ee16acf98b1397cea9126b281d /kdesu/kdesud/kdesud.cpp | |
parent | a061f7191beebb0e4a3b0c0a7c534ec5f22f2dc7 (diff) | |
download | tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.tar.gz tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdesu/kdesud/kdesud.cpp')
-rw-r--r-- | kdesu/kdesud/kdesud.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/kdesu/kdesud/kdesud.cpp b/kdesu/kdesud/kdesud.cpp index d81b6a0c9..3e9462698 100644 --- a/kdesu/kdesud/kdesud.cpp +++ b/kdesu/kdesud/kdesud.cpp @@ -56,9 +56,9 @@ #include <sys/select.h> // Needed on some systems. #endif -#include <qptrvector.h> -#include <qfile.h> -#include <qregexp.h> +#include <tqptrvector.h> +#include <tqfile.h> +#include <tqregexp.h> #include <kinstance.h> #include <kdebug.h> @@ -87,7 +87,7 @@ Repository *repo; const char *Version = "1.01"; -QCString sock; +TQCString sock; Display *x11Display; int pipeOfDeath[2]; @@ -157,7 +157,7 @@ int create_socket() ksocklen_t addrlen; struct stat s; - QCString display(getenv("DISPLAY")); + TQCString display(getenv("DISPLAY")); if (display.isEmpty()) { kdWarning(1205) << "$DISPLAY is not set\n"; @@ -165,9 +165,9 @@ int create_socket() } // strip the screen number from the display - display.replace(QRegExp("\\.[0-9]+$"), ""); + display.replace(TQRegExp("\\.[0-9]+$"), ""); - sock = QFile::encodeName(locateLocal("socket", QString("kdesud_%1").arg(display))); + sock = TQFile::encodeName(locateLocal("socket", TQString("kdesud_%1").arg(display))); int stat_err=lstat(sock, &s); if(!stat_err && S_ISLNK(s.st_mode)) { kdWarning(1205) << "Someone is running a symlink attack on you\n"; @@ -294,7 +294,7 @@ int main(int argc, char *argv[]) maxfd = QMAX(maxfd, x11Fd); repo = new Repository; - QPtrVector<ConnectionHandler> handler; + TQPtrVector<ConnectionHandler> handler; handler.setAutoDelete(true); pipe(pipeOfDeath); |