]> git.tdb.fi Git - libs/gui.git/blobdiff - source/input/gamecontroller.h
Use default member initializers and defaulted default constructors
[libs/gui.git] / source / input / gamecontroller.h
index 863f66f3e5a338bea6d8cdb2acdcb3968f7f43b3..6393ac09358a6b297cc2f0b261e5c94dccd8a5cd 100644 (file)
@@ -13,15 +13,15 @@ class GameController: public Device
 private:
        struct Private;
 
-       Private *priv;
-       IO::EventDispatcher *event_disp;
+       Private *priv = 0;
+       IO::EventDispatcher *event_disp = 0;
 
        static bool detect_done;
        static unsigned n_detected_controllers;
 
 public:
        GameController(unsigned);
-       virtual ~GameController();
+       ~GameController();
 
        static unsigned detect();
        static bool is_available(unsigned = 0);