From 8791313affd56a625db6858f36f926b81013aded Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Fri, 5 Apr 2019 09:26:05 -0700 Subject: [PATCH] Add defaults to switch statements to avoid many warnings about unhandled enum values --- src/qt/anybutton.cpp | 3 +++ src/qt/dnd.cpp | 2 ++ src/qt/menu.cpp | 2 ++ 3 files changed, 7 insertions(+) diff --git a/src/qt/anybutton.cpp b/src/qt/anybutton.cpp index acb5f4c6fd..1bf235bd46 100644 --- a/src/qt/anybutton.cpp +++ b/src/qt/anybutton.cpp @@ -69,6 +69,9 @@ bool wxQtPushButton::event(QEvent* e) case QEvent::FocusIn: case QEvent::FocusOut: GetHandler()->QtUpdateState(); + break; + default: + break; } return QPushButton::event(e); diff --git a/src/qt/dnd.cpp b/src/qt/dnd.cpp index 4e5af17028..ed8ca9e898 100644 --- a/src/qt/dnd.cpp +++ b/src/qt/dnd.cpp @@ -37,6 +37,8 @@ wxDragResult DropActionToDragResult(Qt::DropAction action) return wxDragMove; case Qt::LinkAction: return wxDragLink; + default: + break; } wxFAIL_MSG("Illegal drop action"); diff --git a/src/qt/menu.cpp b/src/qt/menu.cpp index 61d9d5935f..b07a3478cd 100644 --- a/src/qt/menu.cpp +++ b/src/qt/menu.cpp @@ -115,6 +115,8 @@ static void InsertMenuItemAction( const wxMenu *menu, const wxMenuItem *previous } break; } + default: + break; } // Insert the action into the actual menu: QAction *successiveItemAction = ( successiveItem != NULL ) ? successiveItem->GetHandle() : NULL;