Added virtual destructor to abstract class ButtonActions to avoid errors during destruction of child classes

This commit is contained in:
rockerbacon 2019-09-11 12:40:06 -03:00
parent 8d2ae4c3c4
commit 934a76f017

View File

@ -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
#endif //ACTIONS_H