From 91103ad66d9d138ae23f914af18f8f3ddb5f8a38 Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Tue, 9 Jun 2020 09:51:53 +0300 Subject: [PATCH] QmlPreview: Fix MSVC warning C4065: switch statement contains 'default' but no 'case' labels This amends commit 6079a317b9e41a3daa50d10ab262f7d0c3122e2a Change-Id: I90dc72702d8b8d4c1dbcb08f78f67c8ddf9f6717 Reviewed-by: Tim Jenssen --- src/plugins/qmlpreview/qmldebugtranslationclient.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/plugins/qmlpreview/qmldebugtranslationclient.cpp b/src/plugins/qmlpreview/qmldebugtranslationclient.cpp index 47474546ee1..0ccea793007 100644 --- a/src/plugins/qmlpreview/qmldebugtranslationclient.cpp +++ b/src/plugins/qmlpreview/qmldebugtranslationclient.cpp @@ -83,11 +83,7 @@ void QmlDebugTranslationClient::messageReceived(const QByteArray &data) QmlDebug::QPacket packet(dataStreamVersion(), data); qint8 command; packet >> command; - switch (command) { - default: - qDebug() << "invalid command" << command; - break; - } + qDebug() << "invalid command" << command; } void QmlDebugTranslationClient::stateChanged(QmlDebug::QmlDebugClient::State state)