Browse Source

Fix some compiler warnings

Signed-off-by: falkTX <falktx@falktx.com>
pull/321/head
falkTX 3 years ago
parent
commit
dba284c267
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
7 changed files with 9 additions and 9 deletions
  1. +1
    -1
      dgl/Cairo.hpp
  2. +1
    -1
      dgl/NanoVG.hpp
  3. +3
    -3
      dgl/OpenGL.hpp
  4. +1
    -1
      dgl/SubWidget.hpp
  5. +1
    -1
      dgl/TopLevelWidget.hpp
  6. +1
    -1
      distrho/DistrhoUI.hpp
  7. +1
    -1
      distrho/src/DistrhoUIPrivateData.hpp

+ 1
- 1
dgl/Cairo.hpp View File

@@ -151,7 +151,7 @@ public:
/**
Destructor.
*/
virtual ~CairoBaseWidget() {}
~CairoBaseWidget() override {}

protected:
/**


+ 1
- 1
dgl/NanoVG.hpp View File

@@ -940,7 +940,7 @@ public:
/**
Destructor.
*/
virtual ~NanoBaseWidget() {}
~NanoBaseWidget() override {}

protected:
/**


+ 3
- 3
dgl/OpenGL.hpp View File

@@ -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.


+ 1
- 1
dgl/SubWidget.hpp View File

@@ -47,7 +47,7 @@ public:
/**
Destructor.
*/
virtual ~SubWidget();
~SubWidget() override;

/**
Check if this widget contains the point defined by @a x and @a y.


+ 1
- 1
dgl/TopLevelWidget.hpp View File

@@ -54,7 +54,7 @@ public:
/**
Destructor.
*/
virtual ~TopLevelWidget();
~TopLevelWidget() override;

/**
Get the application associated with this top-level widget's window.


+ 1
- 1
distrho/DistrhoUI.hpp View File

@@ -89,7 +89,7 @@ public:
/**
Destructor.
*/
virtual ~UI();
~UI() override;

/* --------------------------------------------------------------------------------------------------------
* Host state */


+ 1
- 1
distrho/src/DistrhoUIPrivateData.hpp View File

@@ -199,7 +199,7 @@ public:
puglBackendEnter(pData->view);
}

~PluginWindow()
~PluginWindow() override
{
if (pData->view != nullptr)
puglBackendLeave(pData->view);


Loading…
Cancel
Save