]> git.tdb.fi Git - libs/gui.git/blobdiff - source/graphics/videomode.h
Use default member initializers and defaulted default constructors
[libs/gui.git] / source / graphics / videomode.h
index a9c58bd003d1cb26c0f8c052832194cc1446bcb6..6c83d945185123a055fd967082875f32b9aa484c 100644 (file)
@@ -13,7 +13,6 @@ class unsupported_video_mode: public std::runtime_error
 {
 public:
        unsupported_video_mode(const VideoMode &);
-       virtual ~unsupported_video_mode() throw () { }
 };
 
 
@@ -28,14 +27,14 @@ enum VideoRotation
 
 struct VideoMode
 {
-       unsigned index;
-       const Monitor *monitor;
-       unsigned width;
-       unsigned height;
-       float rate;
-       VideoRotation rotation;
-
-       VideoMode();
+       unsigned index = 0;
+       const Monitor *monitor = 0;
+       unsigned width = 0;
+       unsigned height = 0;
+       float rate = 0.0f;
+       VideoRotation rotation = ROTATE_ANY;
+
+       VideoMode() = default;
        VideoMode(unsigned, unsigned);
 };