]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/lineararrangement.h
Simplify constructors with C++11
[libs/gltk.git] / source / lineararrangement.h
index 71ffcfeebe43314d30a75dbf80a218e6c2023bd9..917b595cb8caa8dae8259fa579cb619ef94bffe7 100644 (file)
@@ -23,16 +23,16 @@ public:
        };
 
 protected:
-       Side primary;
-       Side opposite;
+       Side primary = RIGHT;
+       Side opposite = static_cast<Side>(primary^2);
        Edge next;
-       bool first;
-       bool split_here;
-       Side gravity;
-       bool internal_aligned;
-       bool uniform;
-       Widget *uniform_ref;
-       int next_spacing;
+       bool first = true;
+       bool split_here = false;
+       Side gravity = opposite;
+       bool internal_aligned = false;
+       bool uniform = false;
+       Widget *uniform_ref = 0;
+       int next_spacing = -1;
 
        LinearArrangement(Layout &, Side);