]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/rect.h
Use default member initializers for simple types
[libs/gl.git] / source / core / rect.h
index 333dbc25f7aa0466bd706acc13f279cb15b9c89e..4f6bd6bd43e266486d30844716475f9555119cef 100644 (file)
@@ -6,12 +6,12 @@ namespace GL {
 
 struct Rect
 {
-       int left;
-       int bottom;
-       unsigned width;
-       unsigned height;
+       int left = 0;
+       int bottom = 0;
+       unsigned width = 0;
+       unsigned height = 0;
 
-       Rect(): left(0), bottom(0), width(0), height(0) { }
+       Rect() = default;
        Rect(int l, int b, unsigned w, unsigned h): left(l), bottom(b), width(w), height(h) { }
 };