Kaydet (Commit) b2c4a000 authored tarafından Caolán McNamara's avatar Caolán McNamara

WaE: -Werror=switch

Change-Id: Id98fd0522403ebc5e175c3fdb2a6ce9e8f6ca4d7
üst 462df89d
...@@ -1169,20 +1169,16 @@ void ScCheckListMenuWindow::MouseMove(const MouseEvent& rMEvt) ...@@ -1169,20 +1169,16 @@ void ScCheckListMenuWindow::MouseMove(const MouseEvent& rMEvt)
bool ScCheckListMenuWindow::Notify(NotifyEvent& rNEvt) 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(); cycleFocus(bShift);
const vcl::KeyCode& rCode = pKeyEvent->GetKeyCode(); return true;
bool bShift = rCode.IsShift();
if (rCode.GetCode() == KEY_TAB)
{
cycleFocus(bShift);
return true;
}
} }
break;
} }
return ScMenuFloatingWindow::Notify(rNEvt); return ScMenuFloatingWindow::Notify(rNEvt);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment