aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@nokia.com>2011-08-31 09:05:00 +0200
committerQt by Nokia <qt-info@nokia.com>2011-08-31 15:31:50 +0200
commit463d765e6f7e77c921440bfe76fd246771192f8b (patch)
tree4e3eb8d4142963d4103b33ea1dfafa7bc326a1aa /tests
parent857f7d6505a570d5cbb307763e17784a1cc730ec (diff)
Autotests: Silence gdb warning about deprecated conversion
Fix "warning: deprecated conversion from string constant to ‘char*" Change-Id: Ie8a4b0caba351e5920cc7d3249ee023bfe7675bc Reviewed-on: http://codereview.qt.nokia.com/3934 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/declarative/qdeclarativedebug/tst_qdeclarativedebug.cpp3
-rw-r--r--tests/auto/declarative/qdeclarativedebugclient/tst_qdeclarativedebugclient.cpp3
-rw-r--r--tests/auto/declarative/qdeclarativedebugservice/tst_qdeclarativedebugservice.cpp3
3 files changed, 6 insertions, 3 deletions
diff --git a/tests/auto/declarative/qdeclarativedebug/tst_qdeclarativedebug.cpp b/tests/auto/declarative/qdeclarativedebug/tst_qdeclarativedebug.cpp
index b47579ea6a..a5a500979f 100644
--- a/tests/auto/declarative/qdeclarativedebug/tst_qdeclarativedebug.cpp
+++ b/tests/auto/declarative/qdeclarativedebug/tst_qdeclarativedebug.cpp
@@ -1209,7 +1209,8 @@ int main(int argc, char *argv[])
char **_argv = new char*[_argc];
for (int i = 0; i < argc; ++i)
_argv[i] = argv[i];
- _argv[_argc - 1] = "-qmljsdebugger=port:3768";
+ char arg[] = "-qmljsdebugger=port:3768";
+ _argv[_argc - 1] = arg;
QApplication app(_argc, _argv);
tst_QDeclarativeDebug tc;
diff --git a/tests/auto/declarative/qdeclarativedebugclient/tst_qdeclarativedebugclient.cpp b/tests/auto/declarative/qdeclarativedebugclient/tst_qdeclarativedebugclient.cpp
index d7f53c9620..2ad50b1025 100644
--- a/tests/auto/declarative/qdeclarativedebugclient/tst_qdeclarativedebugclient.cpp
+++ b/tests/auto/declarative/qdeclarativedebugclient/tst_qdeclarativedebugclient.cpp
@@ -144,7 +144,8 @@ int main(int argc, char *argv[])
char **_argv = new char*[_argc];
for (int i = 0; i < argc; ++i)
_argv[i] = argv[i];
- _argv[_argc - 1] = "-qmljsdebugger=port:13770";
+ char arg[] = "-qmljsdebugger=port:13770";
+ _argv[_argc - 1] = arg;
QApplication app(_argc, _argv);
tst_QDeclarativeDebugClient tc;
diff --git a/tests/auto/declarative/qdeclarativedebugservice/tst_qdeclarativedebugservice.cpp b/tests/auto/declarative/qdeclarativedebugservice/tst_qdeclarativedebugservice.cpp
index 74f549c076..3a285e0452 100644
--- a/tests/auto/declarative/qdeclarativedebugservice/tst_qdeclarativedebugservice.cpp
+++ b/tests/auto/declarative/qdeclarativedebugservice/tst_qdeclarativedebugservice.cpp
@@ -189,7 +189,8 @@ int main(int argc, char *argv[])
char **_argv = new char*[_argc];
for (int i = 0; i < argc; ++i)
_argv[i] = argv[i];
- _argv[_argc - 1] = "-qmljsdebugger=port:13769";
+ char arg[] = "-qmljsdebugger=port:13769";
+ _argv[_argc - 1] = arg;
QApplication app(_argc, _argv);
tst_QDeclarativeDebugService tc;