diff --git a/dgl/Cairo.hpp b/dgl/Cairo.hpp index 567aa63f..cef76734 100644 --- a/dgl/Cairo.hpp +++ b/dgl/Cairo.hpp @@ -151,7 +151,7 @@ public: /** Destructor. */ - virtual ~CairoBaseWidget() {} + ~CairoBaseWidget() override {} protected: /** diff --git a/dgl/NanoVG.hpp b/dgl/NanoVG.hpp index e18074f5..bae8f27a 100644 --- a/dgl/NanoVG.hpp +++ b/dgl/NanoVG.hpp @@ -940,7 +940,7 @@ public: /** Destructor. */ - virtual ~NanoBaseWidget() {} + ~NanoBaseWidget() override {} protected: /** diff --git a/dgl/OpenGL.hpp b/dgl/OpenGL.hpp index 629d831f..d69ca210 100644 --- a/dgl/OpenGL.hpp +++ b/dgl/OpenGL.hpp @@ -238,11 +238,11 @@ public: // FIXME this should not be needed inline void loadFromMemory(const char* rdata, uint w, uint h, ImageFormat fmt = kImageFormatBGRA) - { loadFromMemory(rdata, Size(w, h), fmt); }; + { loadFromMemory(rdata, Size(w, h), fmt); } inline void draw(const GraphicsContext& context) - { drawAt(context, Point(0, 0)); }; + { drawAt(context, Point(0, 0)); } inline void drawAt(const GraphicsContext& context, int x, int y) - { drawAt(context, Point(x, y)); }; + { drawAt(context, Point(x, y)); } /** Constructor using raw image data, specifying an OpenGL image format. diff --git a/dgl/SubWidget.hpp b/dgl/SubWidget.hpp index eab84b74..eefb4c5a 100644 --- a/dgl/SubWidget.hpp +++ b/dgl/SubWidget.hpp @@ -47,7 +47,7 @@ public: /** Destructor. */ - virtual ~SubWidget(); + ~SubWidget() override; /** Check if this widget contains the point defined by @a x and @a y. diff --git a/dgl/TopLevelWidget.hpp b/dgl/TopLevelWidget.hpp index 5e53784e..a9438552 100644 --- a/dgl/TopLevelWidget.hpp +++ b/dgl/TopLevelWidget.hpp @@ -54,7 +54,7 @@ public: /** Destructor. */ - virtual ~TopLevelWidget(); + ~TopLevelWidget() override; /** Get the application associated with this top-level widget's window. diff --git a/distrho/DistrhoUI.hpp b/distrho/DistrhoUI.hpp index e22a656b..1526d302 100644 --- a/distrho/DistrhoUI.hpp +++ b/distrho/DistrhoUI.hpp @@ -89,7 +89,7 @@ public: /** Destructor. */ - virtual ~UI(); + ~UI() override; /* -------------------------------------------------------------------------------------------------------- * Host state */ diff --git a/distrho/src/DistrhoUIPrivateData.hpp b/distrho/src/DistrhoUIPrivateData.hpp index 5d56586b..ce031e12 100644 --- a/distrho/src/DistrhoUIPrivateData.hpp +++ b/distrho/src/DistrhoUIPrivateData.hpp @@ -199,7 +199,7 @@ public: puglBackendEnter(pData->view); } - ~PluginWindow() + ~PluginWindow() override { if (pData->view != nullptr) puglBackendLeave(pData->view);