Fix compilation with GCC 4.7 (C++11)
authorThiago Macieira <thiago.macieira@intel.com>
Wed, 6 Jun 2012 17:17:42 +0000 (19:17 +0200)
committerQt by Nokia <qt-info@nokia.com>
Sat, 23 Jun 2012 08:17:17 +0000 (10:17 +0200)
The error was:
error: unable to find string literal operator â€˜operator"" STR_PORT’

Change-Id: Id4b4e64e296ffc3624be15c20f74a964e6cd1087
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
tests/auto/qml/debugger/qqmlenginedebuginspectorintegrationtest/tst_qqmlenginedebuginspectorintegration.cpp
tests/auto/qml/debugger/qqmlinspector/tst_qqmlinspector.cpp
tests/auto/qml/debugger/qqmlprofilerservice/tst_qqmlprofilerservice.cpp
tests/auto/qml/debugger/qv8profilerservice/tst_qv8profilerservice.cpp

index de34ba9..13fb053 100644 (file)
@@ -105,7 +105,7 @@ QmlDebugObjectReference tst_QQmlEngineDebugInspectorIntegration::findRootObject(
 
 void tst_QQmlEngineDebugInspectorIntegration::init()
 {
-    const QString argument = "-qmljsdebugger=port:"STR_PORT",block";
+    const QString argument = "-qmljsdebugger=port:" STR_PORT ",block";
 
     m_process = new QQmlDebugProcess(QLibraryInfo::location(QLibraryInfo::BinariesPath)
                                      + "/qmlscene");
index 291939d..b38f54a 100644 (file)
@@ -84,7 +84,7 @@ private slots:
 
 void tst_QQmlInspector::init()
 {
-    const QString argument = "-qmljsdebugger=port:"STR_PORT",block";
+    const QString argument = "-qmljsdebugger=port:" STR_PORT ",block";
 
     m_process = new QQmlDebugProcess(QLibraryInfo::location(QLibraryInfo::BinariesPath) + "/qmlscene");
     m_process->start(QStringList() << argument << testFile("qtquick2.qml"));
index bb17d1d..8dc583a 100644 (file)
@@ -234,9 +234,9 @@ void tst_QQmlProfilerService::connect(bool block, const QString &testFile)
     QStringList arguments;
 
     if (block)
-        arguments << QString("-qmljsdebugger=port:"STR_PORT",block");
+        arguments << QString("-qmljsdebugger=port:" STR_PORT ",block");
     else
-        arguments << QString("-qmljsdebugger=port:"STR_PORT);
+        arguments << QString("-qmljsdebugger=port:" STR_PORT);
 
     arguments << QQmlDataTest::instance()->testFile(testFile);
 
index 0c35d10..7be3adf 100644 (file)
@@ -208,9 +208,9 @@ bool tst_QV8ProfilerService::connect(bool block, const QString &testFile,
     QStringList arguments;
 
     if (block)
-        arguments << QString("-qmljsdebugger=port:"STR_PORT",block");
+        arguments << QString("-qmljsdebugger=port:" STR_PORT ",block");
     else
-        arguments << QString("-qmljsdebugger=port:"STR_PORT);
+        arguments << QString("-qmljsdebugger=port:" STR_PORT);
 
     arguments << QQmlDataTest::instance()->testFile(testFile);