]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/toggle.h
Simplify constructors with C++11
[libs/gltk.git] / source / toggle.h
index 0f6c610b00ffdd69a08b4fdd1bdf2e902711e7c8..7c572c51e98c74d18cbf5860e56d6460224afb23 100644 (file)
@@ -28,9 +28,9 @@ public:
 
 private:
        Text text;
-       bool pressed;
-       bool value;
-       bool exclusive;
+       bool pressed = false;
+       bool value = false;
+       bool exclusive = false;
 
 public:
        Toggle(const std::string & = std::string());