diff options
author | Robin Gareus <robin@gareus.org> | 2018-08-07 15:36:22 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2018-08-07 15:36:22 +0200 |
commit | 6d983d5f0bcbed1158565445fb47121d762398e4 (patch) | |
tree | c493a6f5357d94e6ed6a53acbcfe1f82d494cd55 | |
parent | c4d25037c4c3ed816749e3cb0364ad60dff59c70 (diff) |
Fix -Wnon-virtual-dtor
`struct ArdourSurface::LaunchControlXL::LED' has virtual functions
and accessible non-virtual destructor [-Wnon-virtual-dtor]
-rw-r--r-- | libs/surfaces/launch_control_xl/launch_control_xl.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/surfaces/launch_control_xl/launch_control_xl.h b/libs/surfaces/launch_control_xl/launch_control_xl.h index 207cef77cc..418326d870 100644 --- a/libs/surfaces/launch_control_xl/launch_control_xl.h +++ b/libs/surfaces/launch_control_xl/launch_control_xl.h @@ -156,6 +156,7 @@ public: struct LED { LED(uint8_t i, LEDColor c, LaunchControlXL& l) : _index(i), _color(c), _flag(LEDFlag::Normal), lcxl(&l) {} LED(uint8_t i, LEDColor c, LEDFlag f, LaunchControlXL& lcxl) : _index(i), _color(c), _flag(f) {} + virtual ~LED() {} LEDColor color() const { return _color; } LEDFlag flag() const { return _flag; } |