]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/button.h
Simplify constructors with C++11
[libs/gltk.git] / source / button.h
index 2af9cf9d02c520b8cc1beb39f6b5f12230f249c5..09084f183a938defe07b07a45045cacb4ab1532a 100644 (file)
@@ -29,8 +29,8 @@ public:
 
 private:
        Text text;
-       const GL::Texture2D *icon;
-       bool pressed;
+       const GL::Texture2D *icon = 0;
+       bool pressed = false;
 
 public:
        Button(const std::string & = std::string());