DPF

DISTRHO Plugin Framework
Log | Files | Refs | Submodules | README | LICENSE

commit dba284c267c74b12338a576c609885553c19552e
parent 081d4d7392ef587f46dc3b216369655828bbda7f
Author: falkTX <falktx@falktx.com>
Date:   Sat, 14 May 2022 19:26:44 +0100

Fix some compiler warnings

Signed-off-by: falkTX <falktx@falktx.com>

Diffstat:
Mdgl/Cairo.hpp | 2+-
Mdgl/NanoVG.hpp | 2+-
Mdgl/OpenGL.hpp | 6+++---
Mdgl/SubWidget.hpp | 2+-
Mdgl/TopLevelWidget.hpp | 2+-
Mdistrho/DistrhoUI.hpp | 2+-
Mdistrho/src/DistrhoUIPrivateData.hpp | 2+-
7 files changed, 9 insertions(+), 9 deletions(-)

diff --git 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 @@ -940,7 +940,7 @@ public: /** Destructor. */ - virtual ~NanoBaseWidget() {} + ~NanoBaseWidget() override {} protected: /** diff --git 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<uint>(w, h), fmt); }; + { loadFromMemory(rdata, Size<uint>(w, h), fmt); } inline void draw(const GraphicsContext& context) - { drawAt(context, Point<int>(0, 0)); }; + { drawAt(context, Point<int>(0, 0)); } inline void drawAt(const GraphicsContext& context, int x, int y) - { drawAt(context, Point<int>(x, y)); }; + { drawAt(context, Point<int>(x, y)); } /** Constructor using raw image data, specifying an OpenGL image format. diff --git 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 @@ -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 @@ -89,7 +89,7 @@ public: /** Destructor. */ - virtual ~UI(); + ~UI() override; /* -------------------------------------------------------------------------------------------------------- * Host state */ diff --git 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);