summaryrefslogtreecommitdiff
path: root/tests/auto/qabstractxmlnodemodel
diff options
context:
space:
mode:
authorJason McDonald <jason.mcdonald@nokia.com>2011-05-05 18:42:32 +1000
committerJason McDonald <jason.mcdonald@nokia.com>2011-05-06 12:39:01 +1000
commit4e7194ba2fd29dc38adc5580cb85b6eed238ff64 (patch)
tree00496e1279d4dae356641223467cd99cca61c671 /tests/auto/qabstractxmlnodemodel
parent5b044c36d0d7671c8ff9776822cf0f1ad7eeec79 (diff)
downloadqt4-tools-4e7194ba2fd29dc38adc5580cb85b6eed238ff64.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
Diffstat (limited to 'tests/auto/qabstractxmlnodemodel')
-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 fbc28d6712..054fd6926e 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();
}
}