Commit f7ac18b4 authored by Kai Koehne's avatar Kai Koehne
Browse files

Add default label to QtMsgType switch statement


This enables us to add a new QtInfoMsg message type to qtbase
without breaking qtxmlpatterns.

Change-Id: Ia4dcee9390eb6b7fc02cf10067317879e931a092
Reviewed-by: default avatarOswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Reviewed-by: default avatarThiago Macieira <thiago.macieira@intel.com>
Showing with 1 addition and 0 deletions
......@@ -130,6 +130,7 @@ void ColoringMessageHandler::handleMessage(QtMsgType type,
case QtCriticalMsg:
/* Fallthrough. */
case QtDebugMsg:
default:
{
Q_ASSERT_X(false, Q_FUNC_INFO,
"message() is not supposed to receive QtCriticalMsg or QtDebugMsg.");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment