]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/graphic.h
Simplify constructors with C++11
[libs/gltk.git] / source / graphic.h
index 4fed368938016e8613e4a6132155d932889d48a0..b114d7e1c96eba41fd555453d71cb6d1b5dd4cc4 100644 (file)
@@ -33,12 +33,11 @@ public:
 private:
        Sides border;
        Sides shadow;
-       const GL::Texture2D *texture;
+       const GL::Texture2D *texture = 0;
        Geometry slice;
-       bool repeat;
+       bool repeat = false;
 
 public:
-       Graphic();
        const Sides &get_border() const { return border; }
        const Sides &get_shadow() const { return shadow; }
        const GL::Texture2D *get_texture() const { return texture; }