X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcontainer.h;h=adaee6f4bb02c17b021e6386e6eb988809c15051;hb=81c4024fb6acf37df702a803dc4efdf82a81525a;hp=4c38675ea85e4f1dbc2cab354feb183c2ef8b780;hpb=56c41b294aa47a38ac3e1be70d4868f260cb4274;p=libs%2Fgltk.git diff --git a/source/container.h b/source/container.h index 4c38675..adaee6f 100644 --- a/source/container.h +++ b/source/container.h @@ -24,7 +24,7 @@ protected: struct Child: public sigc::trackable { Container &container; - Widget *widget; + Widget *widget = nullptr; Time::TimeDelta time_since_animate; Child(Container &, Widget *); @@ -39,16 +39,16 @@ protected: }; std::list children; - Widget *click_focus; - unsigned click_button; - Widget *pointer_focus; - bool pointer_grabbed; - Widget *input_focus; - Widget *saved_input_focus; - Widget *touch_focus; - bool children_rebuild_needed; - - Container(); + Widget *click_focus = nullptr; + unsigned click_button = 0; + Widget *pointer_focus = nullptr; + bool pointer_grabbed = false; + Widget *input_focus = nullptr; + Widget *saved_input_focus = nullptr; + Widget *touch_focus = nullptr; + bool children_rebuild_needed = false; + + Container() = default; public: virtual ~Container();