]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/container.h
Use nullptr instead of 0 for pointers
[libs/gltk.git] / source / container.h
index 61502e44177c2d963f617da91fc1e4e5d86a570d..adaee6f4bb02c17b021e6386e6eb988809c15051 100644 (file)
@@ -24,7 +24,7 @@ protected:
        struct Child: public sigc::trackable
        {
                Container &container;
-               Widget *widget = 0;
+               Widget *widget = nullptr;
                Time::TimeDelta time_since_animate;
 
                Child(Container &, Widget *);
@@ -39,13 +39,13 @@ protected:
        };
 
        std::list<Child *> children;
-       Widget *click_focus = 0;
+       Widget *click_focus = nullptr;
        unsigned click_button = 0;
-       Widget *pointer_focus = 0;
+       Widget *pointer_focus = nullptr;
        bool pointer_grabbed = false;
-       Widget *input_focus = 0;
-       Widget *saved_input_focus = 0;
-       Widget *touch_focus = 0;
+       Widget *input_focus = nullptr;
+       Widget *saved_input_focus = nullptr;
+       Widget *touch_focus = nullptr;
        bool children_rebuild_needed = false;
 
        Container() = default;