Get rid of QT_NO_QWARNING_MACRO
Just use QT_NO_QDEBUG_MACRO, like we do already for qInfo. Change-Id: I4b2ef68427fbe6f253fe02a3ab161fa25186e834 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
ef6279fd51
commit
979e0512ac
@ -155,7 +155,6 @@ private:
|
||||
#define qFatal QMessageLogger(QT_MESSAGELOG_FILE, QT_MESSAGELOG_LINE, QT_MESSAGELOG_FUNC).fatal
|
||||
|
||||
#define QT_NO_QDEBUG_MACRO while (false) QMessageLogger().noDebug
|
||||
#define QT_NO_QWARNING_MACRO while (false) QMessageLogger().noDebug
|
||||
|
||||
#if defined(QT_NO_DEBUG_OUTPUT)
|
||||
# undef qDebug
|
||||
@ -167,7 +166,7 @@ private:
|
||||
#endif
|
||||
#if defined(QT_NO_WARNING_OUTPUT)
|
||||
# undef qWarning
|
||||
# define qWarning QT_NO_QWARNING_MACRO
|
||||
# define qWarning QT_NO_QDEBUG_MACRO
|
||||
#endif
|
||||
|
||||
Q_CORE_EXPORT void qt_message_output(QtMsgType, const QMessageLogContext &context,
|
||||
|
@ -155,7 +155,7 @@ private:
|
||||
#endif
|
||||
#if defined(QT_NO_WARNING_OUTPUT)
|
||||
# undef qCWarning
|
||||
# define qCWarning(category) QT_NO_QWARNING_MACRO()
|
||||
# define qCWarning(category) QT_NO_QDEBUG_MACRO()
|
||||
#endif
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
Loading…
Reference in New Issue
Block a user