From 903ce3e1eca27abc0c38a44bac5d291b23a1bf04 Mon Sep 17 00:00:00 2001 From: stephena Date: Wed, 24 Jan 2007 20:48:54 +0000 Subject: [PATCH] Fixed bogus warning for switch/case statement. git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1307 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba --- stella/src/gui/TabWidget.cxx | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/stella/src/gui/TabWidget.cxx b/stella/src/gui/TabWidget.cxx index 3b21478b8..8f7bae97a 100644 --- a/stella/src/gui/TabWidget.cxx +++ b/stella/src/gui/TabWidget.cxx @@ -13,7 +13,7 @@ // See the file "license" for information on usage and redistribution of // this file, and for a DISCLAIMER OF ALL WARRANTIES. // -// $Id: TabWidget.cxx,v 1.26 2007-01-23 14:57:14 knakos Exp $ +// $Id: TabWidget.cxx,v 1.27 2007-01-24 20:48:54 stephena Exp $ // // Based on code from ScummVM - Scumm Interpreter // Copyright (C) 2002-2004 The ScummVM project @@ -211,21 +211,26 @@ void TabWidget::handleCommand(CommandSender* sender, int cmd, int data, int id) // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - bool TabWidget::handleEvent(Event::Type event) { + bool handled = false; + switch (event) { case Event::UIDown: case Event::UIRight: case Event::UIPgDown: cycleTab(1); - return true; - + handled = true; + break; case Event::UIUp: case Event::UILeft: case Event::UIPgUp: cycleTab(-1); - return true; + handled = true; + break; + default: + break; } - return false; + return handled; } // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -