summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJason McDonald <jason.mcdonald@nokia.com>2011-05-05 18:42:32 +1000
committerRohan McGovern <rohan.mcgovern@nokia.com>2011-05-18 11:04:38 +1000
commite80ce483655c5a01f6fae73a623332535ba961c0 (patch)
tree1afa079c7c06310c5826a823ed48fa2d94cb0272 /tests
parent6439e994e8a5b76116a01404d128012499100839 (diff)
downloadqtxmlpatterns-e80ce483655c5a01f6fae73a623332535ba961c0.tar.gz
Fix compiler warnings in qabstractxmlnodemodel test
The first parameter to qWarning() should be a format string to avoid problems caused by the data string containing format specifiers. Change-Id: Ib40c0dcd766203fc41182a50680733fff9035045 Reviewed-by: Rohan McGovern (cherry picked from commit 4e7194ba2fd29dc38adc5580cb85b6eed238ff64)
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qabstractxmlnodemodel/LoadingModel.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/auto/qabstractxmlnodemodel/LoadingModel.cpp b/tests/auto/qabstractxmlnodemodel/LoadingModel.cpp
index fbc28d6..054fd69 100644
--- a/tests/auto/qabstractxmlnodemodel/LoadingModel.cpp
+++ b/tests/auto/qabstractxmlnodemodel/LoadingModel.cpp
@@ -39,7 +39,6 @@
**
****************************************************************************/
-
#include <QFile>
#include <QStack>
@@ -337,7 +336,7 @@ void Loader::load()
/* Fallthrough. */
case QXmlStreamReader::Invalid:
{
- qWarning(qPrintable(reader.errorString()));
+ qWarning("%s", qPrintable(reader.errorString()));
m_result.clear();
return;
}
@@ -346,7 +345,7 @@ void Loader::load()
if(reader.hasError())
{
- qWarning(qPrintable(reader.errorString()));
+ qWarning("%s", qPrintable(reader.errorString()));
m_result.clear();
}
}