]> git.tdb.fi Git - libs/gui.git/blobdiff - source/input/binarycontrol.h
Use the override specifier where appropriate
[libs/gui.git] / source / input / binarycontrol.h
index ff773b8a3fb8f2d225ac01ea387aa5998c6c16a6..e71f4c30204d5de23df792c0bf507131ef36ebb5 100644 (file)
@@ -25,7 +25,7 @@ public:
        BinaryControl();
        BinaryControl(const ControlSource &);
        BinaryControl(Device &, ControlSrcType, unsigned);
-       virtual ~BinaryControl();
+       ~BinaryControl();
 
        /** Sets the threshold between states for axis sources.  No effect on button
        sources */
@@ -36,9 +36,9 @@ public:
        bool was_released() const { return falling_edge; }
 
 private:
-       virtual void on_press();
-       virtual void on_release();
-       virtual void on_motion(float, float);
+       void on_press() override;
+       void on_release() override;
+       void on_motion(float, float) override;
 };
 
 } // namespace Input