diff options
Diffstat (limited to 'languages/cpp/setuphelper.cpp')
-rw-r--r-- | languages/cpp/setuphelper.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/languages/cpp/setuphelper.cpp b/languages/cpp/setuphelper.cpp index deab6135..63b4fd94 100644 --- a/languages/cpp/setuphelper.cpp +++ b/languages/cpp/setuphelper.cpp @@ -16,39 +16,39 @@ #include <kdebug.h> #include "ktempfile.h" /* defines [function] KTempDir */ #include "kstandarddirs.h" /* defines [function] locateLocal */ -#include "qdir.h" /* defines QDir */ +#include "tqdir.h" /* defines TQDir */ #include <stdio.h> namespace SetupHelper { -QString getGccIncludePath(bool *ok) +TQString getGccIncludePath(bool *ok) { *ok = true; - QString processStdout; + TQString processStdout; BlockingKProcess proc; proc << "gcc" ; proc << "-print-file-name=include" ; if ( !proc.start(KProcess::NotifyOnExit, KProcess::Stdout) ) { kdWarning(9007) << "Couldn't start gcc" << endl; *ok = false; - return QString(); + return TQString(); } processStdout = proc.stdOut(); return processStdout; } -QString getVerboseGccIncludePath(bool *ok) +TQString getVerboseGccIncludePath(bool *ok) { *ok = false; ///Create temp file KTempFile tempFile(locateLocal("tmp", "kdevelop_temp"), ".cpp"); tempFile.setAutoDelete(true); if( tempFile.status() != 0 ) - return QString();//Failed to create temp file + return TQString();//Failed to create temp file - QString path = tempFile.name(); - QFileInfo pathInfo( path ); + TQString path = tempFile.name(); + TQFileInfo pathInfo( path ); char fileText[] = "//This source-file is empty"; fwrite(fileText, strlen(fileText), 1, tempFile.fstream() ); @@ -61,16 +61,16 @@ QString getVerboseGccIncludePath(bool *ok) if ( !proc.start(KProcess::NotifyOnExit, KProcess::Stdout) ) { kdWarning(9007) << "Couldn't start gcc" << endl; *ok = false; - return QString(); + return TQString(); } *ok = true; return proc.stdOut(); } -QStringList getGccMacros(bool *ok) +TQStringList getGccMacros(bool *ok) { *ok = true; - QString processStdout; + TQString processStdout; BlockingKProcess proc; proc << "gcc"; proc << "-E"; @@ -80,11 +80,11 @@ QStringList getGccMacros(bool *ok) if ( !proc.start(KProcess::NotifyOnExit, KProcess::Stdout) ) { kdWarning(9007) << "Couldn't start gcc" << endl; *ok = false; - return QStringList(); + return TQStringList(); } proc.closeStdin(); processStdout = proc.stdOut(); - QStringList lines = QStringList::split('\n', processStdout); + TQStringList lines = TQStringList::split('\n', processStdout); return lines; } |