All pastes #626786 Raw Edit

Vermischtes

public text v1 · immutable
·published 2007-07-19 21:41 UTC
rendered paste body
Index: kde4automoc.cpp
===================================================================
--- kde4automoc.cpp	(revision 690003)
+++ kde4automoc.cpp	(working copy)
@@ -86,7 +86,7 @@
     : verbose(!QByteArray(getenv("VERBOSE")).isEmpty()), cerr(stderr), cout(stdout), failed(false)
 {
     const QByteArray colorEnv = getenv("COLOR");
-    cmakeEchoColorArgs << "-E" << "cmake_echo_color" << QString("--switch=") + colorEnv << "--blue"
+    cmakeEchoColorArgs << "-E" << "cmake_echo_color" << QLatin1String("--switch=") + colorEnv << "--blue"
         << "--bold";
 }
 
@@ -102,11 +102,11 @@
 
     QString srcdir(args[2]);
     if (!srcdir.endsWith('/')) {
-        srcdir += '/';
+        srcdir.append('/');
     }
     builddir = args[3];
     if (!builddir.endsWith('/')) {
-        builddir += '/';
+        builddir.append('/');
     }
     mocExe = args[4];