aboutsummaryrefslogtreecommitdiff
path: root/gui/widgets
diff options
context:
space:
mode:
authorD G Turner2019-10-03 06:03:46 +0100
committerD G Turner2019-10-03 06:03:46 +0100
commit30c366ee5db4c27e9d0ef94fd5786af55b1b0147 (patch)
treed241f64a12d20a9a8b8eb636a841be200a91ae87 /gui/widgets
parent904e58c35b00c02bf869c17abb9f037e76d4a1a4 (diff)
downloadscummvm-rg350-30c366ee5db4c27e9d0ef94fd5786af55b1b0147.tar.gz
scummvm-rg350-30c366ee5db4c27e9d0ef94fd5786af55b1b0147.tar.bz2
scummvm-rg350-30c366ee5db4c27e9d0ef94fd5786af55b1b0147.zip
GUI: Add Missing Switch Default Cases
These are flagged by GCC if -Wswitch-default is enabled.
Diffstat (limited to 'gui/widgets')
-rw-r--r--gui/widgets/list.cpp2
-rw-r--r--gui/widgets/scrollcontainer.cpp2
-rw-r--r--gui/widgets/tab.cpp3
3 files changed, 7 insertions, 0 deletions
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;
}
}