From 934a76f017203915569de9325f10a6a30d3f1533 Mon Sep 17 00:00:00 2001 From: rockerbacon Date: Wed, 11 Sep 2019 12:40:06 -0300 Subject: [PATCH] Added virtual destructor to abstract class ButtonActions to avoid errors during destruction of child classes --- src/logid/Actions.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/logid/Actions.h b/src/logid/Actions.h index fe5b5d7..1604f97 100644 --- a/src/logid/Actions.h +++ b/src/logid/Actions.h @@ -37,6 +37,8 @@ class Device; class ButtonAction { public: + virtual ~ButtonAction() = default; + Action type; virtual ButtonAction* copy(Device* dev) = 0; virtual void press() = 0; @@ -136,4 +138,4 @@ private: int dpi_inc; }; -#endif //ACTIONS_H \ No newline at end of file +#endif //ACTIONS_H