From a1a7679028eda395d74cd1247a8c3ed46ac3bef1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Samuel=20R=C3=B8dal?= Date: Wed, 13 Mar 2013 16:10:06 +0100 Subject: [PATCH] Compile fix. Some compilers don't allow the first argument to printf and similar functions to be a non-literal string. Change-Id: Idd11ae6679d5c0585b5d10b76c991dcfdb4f65da Reviewed-by: Gunnar Sletta --- src/qml/qml/qqmlimport.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/qml/qml/qqmlimport.cpp b/src/qml/qml/qqmlimport.cpp index 5374f2d..d3ec9e6 100644 --- a/src/qml/qml/qqmlimport.cpp +++ b/src/qml/qml/qqmlimport.cpp @@ -150,7 +150,7 @@ QQmlType *getTypeForUrl(const QString &urlString, const QHashedStringRef& typeNa if (!ret) {//Usually when a type name is "found" but invalid //qDebug() << ret << urlString << QQmlMetaType::qmlType(url); if (!errors) // Cannot list errors properly, just quit - qFatal(QQmlMetaType::typeRegistrationFailures().join('\n').toLatin1().constData()); + qFatal("%s", QQmlMetaType::typeRegistrationFailures().join('\n').toLatin1().constData()); QQmlError error; error.setDescription(QQmlMetaType::typeRegistrationFailures().join('\n')); errors->prepend(error); -- 1.7.2.5