Browse Source

Use KShell::quoteArg instead of K3Process::quote.

git-svn-id: file:///var/svn/tigccpp/trunk@1093 9552661e-59e3-4036-b4f2-dbe53926924f
kevinkofler 17 years ago
parent
commit
55894596d8
3 changed files with 9 additions and 9 deletions
  1. 5 5
      ktigcc/mainform.cpp
  2. 2 2
      ktigcc/projectoptions.cpp
  3. 2 2
      ktigcc/toolprops.cpp

+ 5 - 5
ktigcc/mainform.cpp

@@ -4591,27 +4591,27 @@ void MainForm::linkProject()
     postBuild.replace("\"($V200FILE)\"","($V200FILE)",FALSE);
     postBuild.replace("\"($TI92FILE)\"","($TI92FILE)",FALSE);
     postBuild.replace("($TI89FILE)",
-      K3Process::quote(libopts.use_ti89?projectBaseName+(
+      KShell::quoteArg(libopts.use_ti89?projectBaseName+(
         settings.archive?".a":settings.flash_os?"-89.tib":settings.pack?".89y":
         settings.outputbin?".z89":".89z"
       ):""),FALSE);
     postBuild.replace("($TI89TIFILE)",
-      K3Process::quote(libopts.use_ti89?projectBaseName+(
+      KShell::quoteArg(libopts.use_ti89?projectBaseName+(
         settings.archive?".a":settings.flash_os?"-89ti.tib":settings.pack?".89y":
         settings.outputbin?".z89":".89z"
       ):""),FALSE);
     postBuild.replace("($TI92PLUSFILE)",
-      K3Process::quote(libopts.use_ti92p?projectBaseName+(
+      KShell::quoteArg(libopts.use_ti92p?projectBaseName+(
         settings.archive?".a":settings.flash_os?"-9x.tib":settings.pack?".9xy":
         settings.outputbin?".z9x":".9xz"
       ):""),FALSE);
     postBuild.replace("($V200FILE)",
-      K3Process::quote(libopts.use_v200?projectBaseName+(
+      KShell::quoteArg(libopts.use_v200?projectBaseName+(
         settings.archive?".a":settings.flash_os?"-v2.tib":settings.pack?".v2y":
         settings.outputbin?".zv2":".v2z"
       ):""),FALSE);
     postBuild.replace("($TI92FILE)",
-      K3Process::quote(settings.fargo?projectBaseName+(
+      KShell::quoteArg(settings.fargo?projectBaseName+(
         settings.outputbin?".p92":".92p"
       ):""),FALSE);
     int err;

+ 2 - 2
ktigcc/projectoptions.cpp

@@ -27,7 +27,7 @@
 #include <Q3Accel>
 #include <kmessagebox.h>
 #include <kfiledialog.h>
-#include <k3process.h>
+#include <kshell.h>
 #include <kurl.h>
 #include "ktigcc.h"
 #include "tpr.h"
@@ -256,7 +256,7 @@ void ProjectOptions::browseButton_clicked()
     "application/x-executable application/x-executable-script",this,
     "Choose executable");
   if (!ret.isEmpty())
-    CallAfterBuilding->setText(K3Process::quote(ret)+" \"($TI89File)\" \"($TI92PlusFile)\" \"($V200File)\"");
+    CallAfterBuilding->setText(KShell::quoteArg(ret)+" \"($TI89File)\" \"($TI92PlusFile)\" \"($V200File)\"");
 }
 
 /*

+ 2 - 2
ktigcc/toolprops.cpp

@@ -27,7 +27,7 @@
 #include <kurl.h>
 #include <kurlrequester.h>
 #include <kfiledialog.h>
-#include <k3process.h>
+#include <kshell.h>
 #include "ktigcc.h"
 
 void ToolProperties::init()
@@ -69,7 +69,7 @@ void ToolProperties::browseButton_clicked()
     "application/x-executable application/x-executable-script",this,
     "Choose executable");
   if (!ret.isEmpty())
-    commandLine->setText(K3Process::quote(ret));
+    commandLine->setText(KShell::quoteArg(ret));
 }
 
 /*