From ec51be4fd71babf30a73332bc4b73edb994ee462 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 30 May 2015 00:41:05 +0300 Subject: Convert KeyEvent enum into strong typed enum. --- src/gui/gui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui') diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index 49b6d2774..4cfd83f0f 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -1263,7 +1263,7 @@ void Gui::distributeKeyEvent(KeyEvent &event) const std::list keyListeners = widget->getKeyListeners(); - const KeyEventType::Type eventType = event.getType(); + const KeyEventTypeT eventType = event.getType(); // Send the event to all key listeners of the source widget. FOR_EACH (std::list::const_iterator, it, keyListeners) @@ -1296,7 +1296,7 @@ void Gui::distributeKeyEvent(KeyEvent &event) const void Gui::distributeKeyEventToGlobalKeyListeners(KeyEvent& event) { BLOCK_START("Gui::distributeKeyEventToGlobalKeyListeners") - const KeyEventType::Type eventType = event.getType(); + const KeyEventTypeT eventType = event.getType(); FOR_EACH (KeyListenerListIterator, it, mKeyListeners) { switch (eventType) -- cgit v1.2.3-70-g09d2