]> git.tdb.fi Git - libs/gui.git/blobdiff - source/graphics/android/display_platform.h
Avoid using std::list
[libs/gui.git] / source / graphics / android / display_platform.h
index 207f6ef6722606bd7198c6b17052fe212ac1b290..6795f38239165b1a04e247d17fda585a9a763130 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef MSP_GRAPHICS_DISPLAY_PLATFORM_H_
 #define MSP_GRAPHICS_DISPLAY_PLATFORM_H_
 
+#include <deque>
 #include <android/input.h>
 #include <android/native_window.h>
 #include <sigc++/trackable.h>
@@ -14,10 +15,10 @@ typedef void *DisplayHandle;
 
 struct PlatformDisplayPrivate: public sigc::trackable
 {
-       AInputQueue *input_queue = 0;
-       std::list<Window::Event> events;
+       AInputQueue *input_queue = nullptr;
+       std::deque<Window::Event> events;
        Mutex event_mutex;
-       WindowHandle native_window = 0;
+       WindowHandle native_window = nullptr;
        Mutex window_mutex;
 
        void push_event(AndroidEventType);