]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/button.h
Use nullptr instead of 0 for pointers
[libs/gltk.git] / source / button.h
index 2af9cf9d02c520b8cc1beb39f6b5f12230f249c5..962b2e11908e0608b2ced7133274a0d0e648ec59 100644 (file)
@@ -29,8 +29,8 @@ public:
 
 private:
        Text text;
-       const GL::Texture2D *icon;
-       bool pressed;
+       const GL::Texture2D *icon = nullptr;
+       bool pressed = false;
 
 public:
        Button(const std::string & = std::string());