From 575056a3069df61dbe0499e8406bf9b87fc2a71f Mon Sep 17 00:00:00 2001 From: Kai Koehne Date: Tue, 6 Dec 2011 15:16:55 +0100 Subject: [PATCH] Debugger: Fix compilation warning in autotest Change-Id: I84c058a3cc8808d2da94ae6cb63815cd436bb8b8 Reviewed-by: Roberto Raggi --- .../tst_qdeclarativedebugclient.cpp | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/auto/declarative/debugger/qdeclarativedebugclient/tst_qdeclarativedebugclient.cpp b/tests/auto/declarative/debugger/qdeclarativedebugclient/tst_qdeclarativedebugclient.cpp index 343399b..43f92df 100644 --- a/tests/auto/declarative/debugger/qdeclarativedebugclient/tst_qdeclarativedebugclient.cpp +++ b/tests/auto/declarative/debugger/qdeclarativedebugclient/tst_qdeclarativedebugclient.cpp @@ -182,8 +182,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:" STR_PORT; + char arg[] = "-qmljsdebugger=port:" STR_PORT; + _argv[_argc - 1] = arg; QGuiApplication app(_argc, _argv); tst_QDeclarativeDebugClient tc; -- 1.7.2.5