diff options
author | Samuel Rødal <samuel.rodal@digia.com> | 2013-03-13 16:10:06 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-03-13 20:01:57 +0100 |
commit | a1a7679028eda395d74cd1247a8c3ed46ac3bef1 (patch) | |
tree | 24dcc8c797aee43f0eaa79a429c5978a8b8809f0 /src | |
parent | 8fee64d8d6dd1d33523fa91830304a29a8d89f05 (diff) |
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 <gunnar.sletta@digia.com>
Diffstat (limited to 'src')
-rw-r--r-- | 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 5374f2d1ad..d3ec9e67f7 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); |