summaryrefslogtreecommitdiffstats
path: root/src/declarative/debugger
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2010-11-26 09:41:38 (GMT)
committerFriedemann Kleint <Friedemann.Kleint@nokia.com>2010-11-26 09:43:38 (GMT)
commit1e7b4e396ec3bacc1a769208b990c5e0450f0d3a (patch)
tree1bb9978a085098fe375603391fe9fb1038e4e038 /src/declarative/debugger
parent2c0c3a213d44ad53023a507e19d18d1e5d359aec (diff)
downloadQt-1e7b4e396ec3bacc1a769208b990c5e0450f0d3a.zip
Qt-1e7b4e396ec3bacc1a769208b990c5e0450f0d3a.tar.gz
Qt-1e7b4e396ec3bacc1a769208b990c5e0450f0d3a.tar.bz2
Declarative: Fix compiler warnings (Linux/g++)
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
Diffstat (limited to 'src/declarative/debugger')
-rw-r--r--src/declarative/debugger/qdeclarativedebugservice.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/declarative/debugger/qdeclarativedebugservice.cpp b/src/declarative/debugger/qdeclarativedebugservice.cpp
index 8c86ae8..41a6962 100644
--- a/src/declarative/debugger/qdeclarativedebugservice.cpp
+++ b/src/declarative/debugger/qdeclarativedebugservice.cpp
@@ -226,9 +226,11 @@ QDeclarativeDebugServer *QDeclarativeDebugServer::instance()
server->waitForConnection();
}
} else {
- qWarning(QString::fromAscii("QDeclarativeDebugServer: Ignoring \"-qmljsdebugger=%1\". "
- "Format is -qmljsdebugger=port:<port>[,block]").arg(
- appD->qmljsDebugArgumentsString()).toAscii().constData());
+ const QString message =
+ QString::fromAscii("QDeclarativeDebugServer: Ignoring \"-qmljsdebugger=%1\". "
+ "Format is -qmljsdebugger=port:<port>[,block]").
+ arg(appD->qmljsDebugArgumentsString());
+ qWarning("%s", qPrintable(message));
}
}
#endif