aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorJulien2011-06-06 19:11:09 -0400
committerJulien2011-06-07 03:56:54 -0400
commit063814b15c82403c257362af049715d7462225f5 (patch)
tree4ef4ce13a82877e11578ef1b446e28592922d44d /engines
parent04f4605f539c6ed5e95f53daaaca1bf0054a028a (diff)
downloadscummvm-rg350-063814b15c82403c257362af049715d7462225f5.tar.gz
scummvm-rg350-063814b15c82403c257362af049715d7462225f5.tar.bz2
scummvm-rg350-063814b15c82403c257362af049715d7462225f5.zip
TESTBED: Update some switch constructs for better control flow handling
Diffstat (limited to 'engines')
-rw-r--r--engines/testbed/config.cpp7
-rw-r--r--engines/testbed/testbed.cpp8
2 files changed, 11 insertions, 4 deletions
diff --git a/engines/testbed/config.cpp b/engines/testbed/config.cpp
index 2ffd1b2050..6bd4c82b41 100644
--- a/engines/testbed/config.cpp
+++ b/engines/testbed/config.cpp
@@ -126,10 +126,13 @@ void TestbedOptionsDialog::handleCommand(GUI::CommandSender *sender, uint32 cmd,
ws = _testbedConfMan->getConfigWriteStream();
_testbedConfMan->writeTestbedConfigToStream(ws);
delete ws;
- default:
- GUI::Dialog::handleCommand(sender, cmd, data);
+ break;
+ default:
+ break;
}
+
+ GUI::Dialog::handleCommand(sender, cmd, data);
}
void TestbedInteractionDialog::addText(uint w, uint h, const Common::String text, Graphics::TextAlign textAlign, uint xOffset, uint yPadding) {
diff --git a/engines/testbed/testbed.cpp b/engines/testbed/testbed.cpp
index 41a705e292..152764eb27 100644
--- a/engines/testbed/testbed.cpp
+++ b/engines/testbed/testbed.cpp
@@ -76,12 +76,16 @@ void TestbedExitDialog::init() {
void TestbedExitDialog::handleCommand(GUI::CommandSender *sender, uint32 cmd, uint32 data) {
switch (cmd) {
+ default:
+ break;
+
case kCmdRerunTestbed :
ConfParams.setRerunFlag(true);
cmd = GUI::kCloseCmd;
- default:
- GUI::Dialog::handleCommand(sender, cmd, data);
+ break;
}
+
+ GUI::Dialog::handleCommand(sender, cmd, data);
}
bool TestbedEngine::hasFeature(EngineFeature f) const {