From 00f62e4f3db5aa737b4242a3d691d2ade299fc72 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 28 Dec 2017 19:29:05 +0300 Subject: Add missing override and final to destructors. Also remove some empty destructors. --- src/render/imagegraphics.h | 2 +- src/render/mobileopengl2graphics.h | 2 +- src/render/mobileopenglgraphics.h | 2 +- src/render/modernopenglgraphics.h | 2 +- src/render/normalopenglgraphics.h | 2 +- src/render/nullopenglgraphics.h | 2 +- src/render/safeopenglgraphics.h | 2 +- src/render/sdl2graphics.h | 2 +- src/render/sdl2softwaregraphics.h | 2 +- src/render/sdlgraphics.h | 2 +- src/render/shaders/shader.h | 2 +- src/render/shaders/shaderprogram.h | 2 +- src/render/surfacegraphics.h | 2 +- 13 files changed, 13 insertions(+), 13 deletions(-) (limited to 'src/render') diff --git a/src/render/imagegraphics.h b/src/render/imagegraphics.h index 2b3e5bd71..331332704 100644 --- a/src/render/imagegraphics.h +++ b/src/render/imagegraphics.h @@ -43,7 +43,7 @@ class ImegeGraphics final : public Graphics A_DELETE_COPY(ImegeGraphics) - ~ImegeGraphics(); + ~ImegeGraphics() override final; void setTarget(Image *const target) restrict2 noexcept2 { mTarget = target; } diff --git a/src/render/mobileopengl2graphics.h b/src/render/mobileopengl2graphics.h index 3148c5fd7..9df54a425 100644 --- a/src/render/mobileopengl2graphics.h +++ b/src/render/mobileopengl2graphics.h @@ -60,7 +60,7 @@ class MobileOpenGL2Graphics final : public Graphics A_DELETE_COPY(MobileOpenGL2Graphics) - ~MobileOpenGL2Graphics(); + ~MobileOpenGL2Graphics() override final; void postInit() restrict2 override final; diff --git a/src/render/mobileopenglgraphics.h b/src/render/mobileopenglgraphics.h index 7f4da86da..b008d00a0 100644 --- a/src/render/mobileopenglgraphics.h +++ b/src/render/mobileopenglgraphics.h @@ -59,7 +59,7 @@ class MobileOpenGLGraphics final : public Graphics A_DELETE_COPY(MobileOpenGLGraphics) - ~MobileOpenGLGraphics(); + ~MobileOpenGLGraphics() override final; void postInit() restrict2 override final; diff --git a/src/render/modernopenglgraphics.h b/src/render/modernopenglgraphics.h index f20acab1b..aed4a8415 100644 --- a/src/render/modernopenglgraphics.h +++ b/src/render/modernopenglgraphics.h @@ -60,7 +60,7 @@ class ModernOpenGLGraphics final : public Graphics A_DELETE_COPY(ModernOpenGLGraphics) - ~ModernOpenGLGraphics(); + ~ModernOpenGLGraphics() override final; void postInit() restrict2 override final; diff --git a/src/render/normalopenglgraphics.h b/src/render/normalopenglgraphics.h index ee7ecd9ce..2a61538ff 100644 --- a/src/render/normalopenglgraphics.h +++ b/src/render/normalopenglgraphics.h @@ -59,7 +59,7 @@ class NormalOpenGLGraphics final : public Graphics A_DELETE_COPY(NormalOpenGLGraphics) - ~NormalOpenGLGraphics(); + ~NormalOpenGLGraphics() override final; inline void drawQuadArrayfi(const int size) restrict2 A_INLINE; diff --git a/src/render/nullopenglgraphics.h b/src/render/nullopenglgraphics.h index f496c0a35..292684ed8 100644 --- a/src/render/nullopenglgraphics.h +++ b/src/render/nullopenglgraphics.h @@ -59,7 +59,7 @@ class NullOpenGLGraphics final : public Graphics A_DELETE_COPY(NullOpenGLGraphics) - ~NullOpenGLGraphics(); + ~NullOpenGLGraphics() override final; inline void drawQuadArrayfi(const int size) restrict2 A_INLINE; diff --git a/src/render/safeopenglgraphics.h b/src/render/safeopenglgraphics.h index 5c85ee058..a051f088a 100644 --- a/src/render/safeopenglgraphics.h +++ b/src/render/safeopenglgraphics.h @@ -54,7 +54,7 @@ class SafeOpenGLGraphics final : public Graphics A_DELETE_COPY(SafeOpenGLGraphics) - ~SafeOpenGLGraphics(); + ~SafeOpenGLGraphics() override final; void testDraw() restrict2 override final; diff --git a/src/render/sdl2graphics.h b/src/render/sdl2graphics.h index 5db1cf179..dd86dd5d9 100644 --- a/src/render/sdl2graphics.h +++ b/src/render/sdl2graphics.h @@ -95,7 +95,7 @@ class SDLGraphics final : public Graphics /** * Destructor. */ - ~SDLGraphics(); + ~SDLGraphics() override final; void setRendererFlags(const uint32_t flags) restrict noexcept2 override { mRendererFlags = flags; } diff --git a/src/render/sdl2softwaregraphics.h b/src/render/sdl2softwaregraphics.h index 438b02674..6b3cbba31 100644 --- a/src/render/sdl2softwaregraphics.h +++ b/src/render/sdl2softwaregraphics.h @@ -54,7 +54,7 @@ class SDL2SoftwareGraphics final : public Graphics /** * Destructor. */ - ~SDL2SoftwareGraphics(); + ~SDL2SoftwareGraphics() override final; void setRendererFlags(const uint32_t flags) restrict2 noexcept2 override final diff --git a/src/render/sdlgraphics.h b/src/render/sdlgraphics.h index e93c5df06..3d00c93f5 100644 --- a/src/render/sdlgraphics.h +++ b/src/render/sdlgraphics.h @@ -49,7 +49,7 @@ class SDLGraphics final : public Graphics /** * Destructor. */ - ~SDLGraphics(); + ~SDLGraphics() override final; #include "render/graphicsdef.hpp" RENDER_GRAPHICSDEF_HPP diff --git a/src/render/shaders/shader.h b/src/render/shaders/shader.h index f11d9d44e..ea5429e3c 100644 --- a/src/render/shaders/shader.h +++ b/src/render/shaders/shader.h @@ -30,7 +30,7 @@ class Shader final : public Resource public: explicit Shader(const unsigned int id); - ~Shader(); + ~Shader() override final; A_DELETE_COPY(Shader) diff --git a/src/render/shaders/shaderprogram.h b/src/render/shaders/shaderprogram.h index b8d8e4bc3..ba3c9775a 100644 --- a/src/render/shaders/shaderprogram.h +++ b/src/render/shaders/shaderprogram.h @@ -34,7 +34,7 @@ class ShaderProgram final : public Resource Shader *const vertex, Shader *const fragment); - ~ShaderProgram(); + ~ShaderProgram() override final; A_DELETE_COPY(ShaderProgram) diff --git a/src/render/surfacegraphics.h b/src/render/surfacegraphics.h index 2e46c9f1e..13169fc08 100644 --- a/src/render/surfacegraphics.h +++ b/src/render/surfacegraphics.h @@ -43,7 +43,7 @@ class SurfaceGraphics final : public Graphics A_DELETE_COPY(SurfaceGraphics) - ~SurfaceGraphics(); + ~SurfaceGraphics() override final; void setTarget(SDL_Surface *restrict const target) restrict2 noexcept2 { mTarget = target; } -- cgit v1.2.3-60-g2f50