X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbutton.h;h=962b2e11908e0608b2ced7133274a0d0e648ec59;hb=81c4024fb6acf37df702a803dc4efdf82a81525a;hp=2af9cf9d02c520b8cc1beb39f6b5f12230f249c5;hpb=56c41b294aa47a38ac3e1be70d4868f260cb4274;p=libs%2Fgltk.git diff --git a/source/button.h b/source/button.h index 2af9cf9..962b2e1 100644 --- a/source/button.h +++ b/source/button.h @@ -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());