]> git.tdb.fi Git - libs/gui.git/blobdiff - source/input/binarycontrol.h
Use default member initializers and defaulted default constructors
[libs/gui.git] / source / input / binarycontrol.h
index e71f4c30204d5de23df792c0bf507131ef36ebb5..0d71bdc3349e0dc4afedf3a5a9423528ca82977a 100644 (file)
@@ -18,11 +18,11 @@ public:
        sigc::signal<void> signal_release;
 
 private:
-       bool state;
-       float threshold;
+       bool state = false;
+       float threshold = 0.5f;
 
 public:
-       BinaryControl();
+       BinaryControl() = default;
        BinaryControl(const ControlSource &);
        BinaryControl(Device &, ControlSrcType, unsigned);
        ~BinaryControl();