X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fcore%2Frect.h;h=4f6bd6bd43e266486d30844716475f9555119cef;hp=333dbc25f7aa0466bd706acc13f279cb15b9c89e;hb=38712d8ecc57d043a2419ffbaeeb57f7a6586f14;hpb=3bc34893905a2df622894aadcb6669f27f186772 diff --git a/source/core/rect.h b/source/core/rect.h index 333dbc25..4f6bd6bd 100644 --- a/source/core/rect.h +++ b/source/core/rect.h @@ -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) { } };