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)
**
****************************************************************************/
-
#include <QFile>
#include <QStack>
/* Fallthrough. */
case QXmlStreamReader::Invalid:
{
- qWarning(qPrintable(reader.errorString()));
+ qWarning("%s", qPrintable(reader.errorString()));
m_result.clear();
return;
}
if(reader.hasError())
{
- qWarning(qPrintable(reader.errorString()));
+ qWarning("%s", qPrintable(reader.errorString()));
m_result.clear();
}
}