diff options
author | Kai Koehne <kai.koehne@theqtcompany.com> | 2014-12-17 14:05:10 +0100 |
---|---|---|
committer | Kai Koehne <kai.koehne@theqtcompany.com> | 2014-12-20 12:41:28 +0100 |
commit | f7ac18b46118d7b3cd93f812a5452028211dc8cc (patch) | |
tree | f4c6fb196b6ecbefe130b559ac6274c9eb2c7275 | |
parent | d31582e689bb9aa68aaa9223577db81620e106b9 (diff) | |
download | qtxmlpatterns-f7ac18b46118d7b3cd93f812a5452028211dc8cc.tar.gz qtxmlpatterns-f7ac18b46118d7b3cd93f812a5452028211dc8cc.tar.bz2 qtxmlpatterns-f7ac18b46118d7b3cd93f812a5452028211dc8cc.zip |
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: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
-rw-r--r-- | src/xmlpatterns/api/qcoloringmessagehandler.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/xmlpatterns/api/qcoloringmessagehandler.cpp b/src/xmlpatterns/api/qcoloringmessagehandler.cpp index 942d9df..2e2f07b 100644 --- a/src/xmlpatterns/api/qcoloringmessagehandler.cpp +++ b/src/xmlpatterns/api/qcoloringmessagehandler.cpp @@ -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."); |