From 30c366ee5db4c27e9d0ef94fd5786af55b1b0147 Mon Sep 17 00:00:00 2001 From: D G Turner Date: Thu, 3 Oct 2019 06:03:46 +0100 Subject: GUI: Add Missing Switch Default Cases These are flagged by GCC if -Wswitch-default is enabled. --- gui/widgets/list.cpp | 2 ++ gui/widgets/scrollcontainer.cpp | 2 ++ gui/widgets/tab.cpp | 3 +++ 3 files changed, 7 insertions(+) (limited to 'gui/widgets') diff --git a/gui/widgets/list.cpp b/gui/widgets/list.cpp index cc5ea91745..3ef365ba5c 100644 --- a/gui/widgets/list.cpp +++ b/gui/widgets/list.cpp @@ -516,6 +516,8 @@ void ListWidget::handleCommand(CommandSender *sender, uint32 cmd, uint32 data) { ((GUI::Dialog *)_boss)->setFocusWidget(this); } break; + default: + break; } } diff --git a/gui/widgets/scrollcontainer.cpp b/gui/widgets/scrollcontainer.cpp index 389eed05c3..c136c57a81 100644 --- a/gui/widgets/scrollcontainer.cpp +++ b/gui/widgets/scrollcontainer.cpp @@ -111,6 +111,8 @@ void ScrollContainerWidget::handleCommand(CommandSender *sender, uint32 cmd, uin reflowLayout(); g_gui.scheduleTopDialogRedraw(); break; + default: + break; } } diff --git a/gui/widgets/tab.cpp b/gui/widgets/tab.cpp index 8c136ba467..0305b57061 100644 --- a/gui/widgets/tab.cpp +++ b/gui/widgets/tab.cpp @@ -195,6 +195,9 @@ void TabWidget::handleCommand(CommandSender *sender, uint32 cmd, uint32 data) { setFirstVisible(_firstVisibleTab + 1, false); } break; + + default: + break; } } -- cgit v1.2.3