From: Samuel Rødal Date: Wed, 13 Mar 2013 15:10:06 +0000 (+0100) Subject: Compile fix. X-Git-Tag: upstream/5.2.1~839 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a1a7679028eda395d74cd1247a8c3ed46ac3bef1;p=platform%2Fupstream%2Fqtdeclarative.git 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 --- 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);