]> git.tdb.fi Git - libs/gui.git/blobdiff - source/graphics/monitor.h
Use default member initializers and defaulted default constructors
[libs/gui.git] / source / graphics / monitor.h
index fefd9867f8f78e2962696fe26f07f654c3f1982c..0fc9798568348e1eedd745eac9c8212e3f41fd4e 100644 (file)
@@ -12,22 +12,19 @@ struct Monitor
 {
        struct Settings
        {
-               const VideoMode *mode;
-               VideoRotation rotation;
-               int x, y;
-
-               Settings();
+               const VideoMode *mode = 0;
+               VideoRotation rotation = ROTATE_NORMAL;
+               int x = 0;
+               int y = 0;
        };
 
-       unsigned index;
+       unsigned index = 0;
        std::string name;
        std::list<const VideoMode *> video_modes;
        Settings desktop_settings;
        Settings current_settings;
-       const Monitor *next_left;
-       const Monitor *next_right;
-
-       Monitor();
+       const Monitor *next_left = 0;
+       const Monitor *next_right = 0;
 };
 
 } // namespace Graphics