diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2017-02-10 19:52:34 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2017-02-10 20:11:31 +0100 |
commit | dc33f15a6b968139779c2b7d2003d3ef6e7d5748 (patch) | |
tree | 949172db6cdb9ed2b03bfe9f5051f51a683ecd19 /plugingui/eventhandler.cc | |
parent | f9d2d48214038689dc42085373b28b934f7fe002 (diff) |
Clean up guievent.h and use EventQueue type instead if std::queue.
Diffstat (limited to 'plugingui/eventhandler.cc')
-rw-r--r-- | plugingui/eventhandler.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugingui/eventhandler.cc b/plugingui/eventhandler.cc index 9643d3f..aded993 100644 --- a/plugingui/eventhandler.cc +++ b/plugingui/eventhandler.cc @@ -29,7 +29,8 @@ #include "window.h" #include "painter.h" -namespace GUI { +namespace GUI +{ EventHandler::EventHandler(NativeWindow& nativeWindow, Window& window) : window(window) @@ -51,7 +52,7 @@ std::shared_ptr<Event> EventHandler::getNextEvent() } auto event = events.front(); - events.pop(); + events.pop_front(); return event; } |