]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/image.h
Simplify constructors with C++11
[libs/gltk.git] / source / image.h
index 77357561ead0a54fc147681e580bd67fa80c989c..026aaca82aebbcc4b326b706d4df052f98ea3d8d 100644 (file)
@@ -21,9 +21,9 @@ public:
        };
 
 private:
-       const GL::Texture2D *image;
+       const GL::Texture2D *image = 0;
        std::string icon_name;
-       bool keep_aspect;
+       bool keep_aspect = true;
 
 public:
        Image(const GL::Texture2D * = 0);