]> git.tdb.fi Git - libs/gui.git/blobdiff - source/input/smoothcontrol.h
Use default member initializers and defaulted default constructors
[libs/gui.git] / source / input / smoothcontrol.h
index 11744ddc7fc6f4e4248580bd5b77e141a91745ca..5f7182404bc5cb11bf12bdebd5cb3b1dc7259ef1 100644 (file)
@@ -20,13 +20,13 @@ public:
        sigc::signal<void, float> signal_motion;
 
 private:
-       float value;
-       SmoothControl *paired_ctrl;
-       float dead_zone;
-       float threshold;
+       float value = 0.0f;
+       SmoothControl *paired_ctrl = 0;
+       float dead_zone = 0.1f;
+       float threshold = 0.9f;
 
 public:
-       SmoothControl();
+       SmoothControl() = default;
        SmoothControl(const ControlSource &);
        SmoothControl(Device &, ControlSrcType, unsigned);
        ~SmoothControl();