summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-12-01 14:25:05 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-12-01 14:25:05 +0000
commitb2c4a00095e3baa028dec059f34be04cac6463bb (patch)
tree569fc20bee4c1b4340098c4067ba37b5ab769f10 /sc
parent462df89dbb89b4f32aefde092830806002145e86 (diff)
WaE: -Werror=switch
Change-Id: Id98fd0522403ebc5e175c3fdb2a6ce9e8f6ca4d7
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/cctrl/checklistmenu.cxx18
1 files changed, 7 insertions, 11 deletions
diff --git a/sc/source/ui/cctrl/checklistmenu.cxx b/sc/source/ui/cctrl/checklistmenu.cxx
index cbf834e885fb..c3ad4d87d4b7 100644
--- a/sc/source/ui/cctrl/checklistmenu.cxx
+++ b/sc/source/ui/cctrl/checklistmenu.cxx
@@ -1169,20 +1169,16 @@ void ScCheckListMenuWindow::MouseMove(const MouseEvent& rMEvt)
bool ScCheckListMenuWindow::Notify(NotifyEvent& rNEvt)
{
- switch (rNEvt.GetType())
+ if (rNEvt.GetType() == MouseNotifyEvent::KEYUP)
{
- case MouseNotifyEvent::KEYUP:
+ const KeyEvent* pKeyEvent = rNEvt.GetKeyEvent();
+ const vcl::KeyCode& rCode = pKeyEvent->GetKeyCode();
+ bool bShift = rCode.IsShift();
+ if (rCode.GetCode() == KEY_TAB)
{
- const KeyEvent* pKeyEvent = rNEvt.GetKeyEvent();
- const vcl::KeyCode& rCode = pKeyEvent->GetKeyCode();
- bool bShift = rCode.IsShift();
- if (rCode.GetCode() == KEY_TAB)
- {
- cycleFocus(bShift);
- return true;
- }
+ cycleFocus(bShift);
+ return true;
}
- break;
}
return ScMenuFloatingWindow::Notify(rNEvt);
}