]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/draghandle.h
Simplify constructors with C++11
[libs/gltk.git] / source / draghandle.h
index 0aae73231877a819cecff1aff7ed733d9d4f6d17..d3cd6f2b94cd88c6c17f9d22381c289308e26b47 100644 (file)
@@ -14,13 +14,11 @@ into a movable window.
 class MSPGLTK_API DragHandle: public Widget
 {
 private:
-       bool dragging;
-       int drag_x;
-       int drag_y;
+       bool dragging = false;
+       int drag_x = 0;
+       int drag_y = 0;
 
 public:
-       DragHandle();
-
        virtual const char *get_class() const { return "draghandle"; }
 
        virtual void button_press(int, int, unsigned);