From 0c863b2e2cc7f5be6baa918c8fffb0ee44c02cc7 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 18 Feb 2015 13:20:34 +0300 Subject: Add missing override keywords. --- src/render/graphicsdef.hpp | 6 +++--- src/render/imagegraphics.h | 4 ++-- src/render/safeopenglgraphics.h | 2 +- src/render/surfacegraphics.h | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) (limited to 'src/render') diff --git a/src/render/graphicsdef.hpp b/src/render/graphicsdef.hpp index ffa6d12c0..fb90c2fb4 100644 --- a/src/render/graphicsdef.hpp +++ b/src/render/graphicsdef.hpp @@ -27,11 +27,11 @@ public: */ void drawImageRect(int x, int y, int w, int h, - const ImageRect &imgRect); + const ImageRect &imgRect) override final; - void beginDraw(); + void beginDraw() override final; - void endDraw(); + void endDraw() override final; void pushClipArea(const Rect &area) override final; diff --git a/src/render/imagegraphics.h b/src/render/imagegraphics.h index a208d675f..8957543d4 100644 --- a/src/render/imagegraphics.h +++ b/src/render/imagegraphics.h @@ -128,7 +128,7 @@ class ImegeGraphics final : public Graphics override final { } - void updateScreen() + void updateScreen() override final { } SDL_Surface *getScreenshot() override final A_WARN_UNUSED @@ -193,7 +193,7 @@ class ImegeGraphics final : public Graphics */ void drawImageRect(const int x A_UNUSED, const int y A_UNUSED, const int w A_UNUSED, const int h A_UNUSED, - const ImageRect &imgRect A_UNUSED) + const ImageRect &imgRect A_UNUSED) override final { } protected: diff --git a/src/render/safeopenglgraphics.h b/src/render/safeopenglgraphics.h index fbb359002..04bf478a3 100644 --- a/src/render/safeopenglgraphics.h +++ b/src/render/safeopenglgraphics.h @@ -50,7 +50,7 @@ class SafeOpenGLGraphics final : public Graphics ~SafeOpenGLGraphics(); - void testDraw(); + void testDraw() override final; #include "render/graphicsdef.hpp" diff --git a/src/render/surfacegraphics.h b/src/render/surfacegraphics.h index f03392448..4a12f54d8 100644 --- a/src/render/surfacegraphics.h +++ b/src/render/surfacegraphics.h @@ -132,7 +132,7 @@ class SurfaceGraphics final : public Graphics override final { } - void updateScreen() + void updateScreen() override final { } SDL_Surface *getScreenshot() override final A_WARN_UNUSED @@ -203,7 +203,7 @@ class SurfaceGraphics final : public Graphics */ void drawImageRect(const int x A_UNUSED, const int y A_UNUSED, const int w A_UNUSED, const int h A_UNUSED, - const ImageRect &imgRect A_UNUSED) + const ImageRect &imgRect A_UNUSED) override final { } protected: -- cgit v1.2.3-70-g09d2