summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@digia.com>2013-11-04 16:24:36 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-11-05 11:15:24 +0100
commitc570428816e3719ba2f5efa5d2c8c88170a085b3 (patch)
treef83abf5c9b8e1876ec767d6f054492b59bad964a
parent5f2a2e71eea5daa9ec67db1ca6904762f8bf2b49 (diff)
downloadqtxmlpatterns-c570428816e3719ba2f5efa5d2c8c88170a085b3.tar.gz
Revert "Handle new QtTraceMsg type, fix warnings about unhandled enumeration value."
This reverts commit bf49d9f0d41c3be802dbdd2c23dfe7c5fd86f4b0. QtTraceMsg was removed from QtCore for the moment, too. Change-Id: I1d6aaacf5e363f81272da4fbb0a4ff12337dd677 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
-rw-r--r--src/xmlpatterns/api/qcoloringmessagehandler.cpp3
-rw-r--r--tests/auto/xmlpatternssdk/ErrorHandler.cpp3
2 files changed, 3 insertions, 3 deletions
diff --git a/src/xmlpatterns/api/qcoloringmessagehandler.cpp b/src/xmlpatterns/api/qcoloringmessagehandler.cpp
index 59be099..f55f96d 100644
--- a/src/xmlpatterns/api/qcoloringmessagehandler.cpp
+++ b/src/xmlpatterns/api/qcoloringmessagehandler.cpp
@@ -136,12 +136,11 @@ void ColoringMessageHandler::handleMessage(QtMsgType type,
break;
}
case QtCriticalMsg:
- case QtTraceMsg:
/* Fallthrough. */
case QtDebugMsg:
{
Q_ASSERT_X(false, Q_FUNC_INFO,
- "message() is not supposed to receive QtCriticalMsg, QtTraceMsg or QtDebugMsg.");
+ "message() is not supposed to receive QtCriticalMsg or QtDebugMsg.");
return;
}
}
diff --git a/tests/auto/xmlpatternssdk/ErrorHandler.cpp b/tests/auto/xmlpatternssdk/ErrorHandler.cpp
index 5b21d83..74a6a6d 100644
--- a/tests/auto/xmlpatternssdk/ErrorHandler.cpp
+++ b/tests/auto/xmlpatternssdk/ErrorHandler.cpp
@@ -88,7 +88,8 @@ void qMessageHandler(QtMsgType type, const QMessageLogContext &, const QString &
return;
}
case QtDebugMsg: /* This enum is handled above in the if-clause. */
- case QtTraceMsg:
+ /* Fallthrough. */
+ default:
{
Q_ASSERT(false);
return;