From: Alan Alpert <416365416c@gmail.com> Date: Thu, 27 Jun 2013 04:25:04 +0000 (-0700) Subject: Switch to non-streaming version of qWarning() X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=a8e904c69a907742a5cc55c524c5432c7a35cba4;p=konrad%2Fqtdeclarative.git Switch to non-streaming version of qWarning() Allows us to drop the qdebug.h include in a public and frequently used header. Change-Id: I2cb05fbec6298ba600020db684e9eea4093ce663 Reviewed-by: Thiago Macieira Reviewed-by: Christopher Adams --- diff --git a/src/qml/qml/qqml.h b/src/qml/qml/qqml.h index fb0133f..b48a776 100644 --- a/src/qml/qml/qqml.h +++ b/src/qml/qml/qqml.h @@ -49,7 +49,6 @@ #include #include -#include #define QML_VERSION 0x020000 #define QML_VERSION_STR "2.0" @@ -477,7 +476,7 @@ inline int qmlRegisterType(const QUrl &url, const char *uri, int versionMajor, i { if (url.isRelative()) { // User input check must go here, because QQmlPrivate::qmlregister is also used internally for composite types - qWarning() << "qmlRegisterType requires absolute URLs."; + qWarning("qmlRegisterType requires absolute URLs."); return 0; }