]> git.tdb.fi Git - libs/core.git/blobdiff - source/core/windows/process.cpp
Use the new utilities to format some strings
[libs/core.git] / source / core / windows / process.cpp
index 7b1efd693aff45fce41594914b4d16dc2264de70..d6d1484f7d3ec05079310d2412df2f2c37c7ac0c 100644 (file)
@@ -1,6 +1,7 @@
 #include <windows.h>
 #include <msp/core/systemerror.h>
 #include <msp/io/handle_private.h>
 #include <windows.h>
 #include <msp/core/systemerror.h>
 #include <msp/io/handle_private.h>
+#include <msp/strings/utils.h>
 #include "process.h"
 #include "process_private.h"
 
 #include "process.h"
 #include "process_private.h"
 
@@ -56,10 +57,7 @@ void Process::execute(const string &command, bool path_search, const Arguments &
 {
        string cmdline = quote_argument(command);
        for(Arguments::const_iterator i=args.begin(); i!=args.end(); ++i)
 {
        string cmdline = quote_argument(command);
        for(Arguments::const_iterator i=args.begin(); i!=args.end(); ++i)
-       {
-               cmdline += ' ';
-               cmdline += quote_argument(*i);
-       }
+               append(cmdline, " ", quote_argument(*i));
 
        STARTUPINFO startup;
        startup.cb = sizeof(STARTUPINFO);
 
        STARTUPINFO startup;
        startup.cb = sizeof(STARTUPINFO);