summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-17 20:03:14 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-17 20:03:14 +0300
commit55480eb4477b2cf85af1bcdcc5e8ec4f4ce6682d (patch)
treeb1108bef76eed589fcb0028c4bd97f14510e940f /src/resources
parent72b9b0b8b7f3e0b60bf7a926b44aaa589dd131e8 (diff)
downloadmanaplus-55480eb4477b2cf85af1bcdcc5e8ec4f4ce6682d.tar.gz
manaplus-55480eb4477b2cf85af1bcdcc5e8ec4f4ce6682d.tar.bz2
manaplus-55480eb4477b2cf85af1bcdcc5e8ec4f4ce6682d.tar.xz
manaplus-55480eb4477b2cf85af1bcdcc5e8ec4f4ce6682d.zip
Remove override keyword, if it present with final.
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/atlas/atlasresource.h4
-rw-r--r--src/resources/inventory/complexinventory.h4
-rw-r--r--src/resources/map/map.h2
-rw-r--r--src/resources/map/maplayer.h2
-rw-r--r--src/resources/mobileopenglscreenshothelper.h4
-rw-r--r--src/resources/openglimagehelper.h12
-rw-r--r--src/resources/openglscreenshothelper.h4
-rw-r--r--src/resources/safeopenglimagehelper.h12
-rw-r--r--src/resources/sdl2imagehelper.h6
-rw-r--r--src/resources/sdl2softwareimagehelper.h4
-rw-r--r--src/resources/sdl2softwarescreenshothelper.h4
-rw-r--r--src/resources/sdlimagehelper.h8
-rw-r--r--src/resources/sdlscreenshothelper.h4
-rw-r--r--src/resources/sprite/animatedsprite.h26
-rw-r--r--src/resources/sprite/imagesprite.h22
-rw-r--r--src/resources/subimage.h4
-rw-r--r--src/resources/surfaceimagehelper.h6
17 files changed, 64 insertions, 64 deletions
diff --git a/src/resources/atlas/atlasresource.h b/src/resources/atlas/atlasresource.h
index 0a9d90f04..0e4fffceb 100644
--- a/src/resources/atlas/atlasresource.h
+++ b/src/resources/atlas/atlasresource.h
@@ -40,9 +40,9 @@ class AtlasResource final : public Resource
~AtlasResource();
- void incRef() override final;
+ void incRef() final;
- void decRef() override final;
+ void decRef() final;
std::vector<TextureAtlas*> atlases;
};
diff --git a/src/resources/inventory/complexinventory.h b/src/resources/inventory/complexinventory.h
index 996212d18..52cade53c 100644
--- a/src/resources/inventory/complexinventory.h
+++ b/src/resources/inventory/complexinventory.h
@@ -47,7 +47,7 @@ class ComplexInventory final : public Inventory
bool addVirtualItem(const Item *const item,
int index,
- const int amount) override final;
+ const int amount) final;
void setItem(const int index,
const int id,
@@ -59,7 +59,7 @@ class ComplexInventory final : public Inventory
const Damaged damaged,
const Favorite favorite,
const Equipm equipment,
- const Equipped equipped) override final;
+ const Equipped equipped) final;
};
#endif // RESOURCES_INVENTORY_COMPLEXINVENTORY_H
diff --git a/src/resources/map/map.h b/src/resources/map/map.h
index 4a0f71e82..1b87f8288 100644
--- a/src/resources/map/map.h
+++ b/src/resources/map/map.h
@@ -283,7 +283,7 @@ class Map final : public Properties, public ConfigListener
const restrict2 A_WARN_UNUSED;
void optionChanged(const std::string &restrict value)
- restrict2 override final;
+ restrict2 final;
MapItem *findPortalXY(const int x,
const int y) const restrict2 A_WARN_UNUSED;
diff --git a/src/resources/map/maplayer.h b/src/resources/map/maplayer.h
index 45dcaec02..da35c239e 100644
--- a/src/resources/map/maplayer.h
+++ b/src/resources/map/maplayer.h
@@ -155,7 +155,7 @@ class MapLayer final: public ConfigListener
{ return mHeight; }
void optionChanged(const std::string &restrict value)
- restrict override final;
+ restrict final;
void setDrawLayerFlags(const MapTypeT &restrict n) restrict;
diff --git a/src/resources/mobileopenglscreenshothelper.h b/src/resources/mobileopenglscreenshothelper.h
index b9950092a..855d47717 100644
--- a/src/resources/mobileopenglscreenshothelper.h
+++ b/src/resources/mobileopenglscreenshothelper.h
@@ -40,9 +40,9 @@ class MobileOpenGLScreenshotHelper final : public ScreenshotHelper
~MobileOpenGLScreenshotHelper();
- void prepare() override final;
+ void prepare() final;
- SDL_Surface *getScreenshot() override final;
+ SDL_Surface *getScreenshot() final;
private:
FBOInfo mFbo;
diff --git a/src/resources/openglimagehelper.h b/src/resources/openglimagehelper.h
index 0c7e49c8f..0f76a0bac 100644
--- a/src/resources/openglimagehelper.h
+++ b/src/resources/openglimagehelper.h
@@ -78,18 +78,18 @@ class OpenGLImageHelper final : public ImageHelper
* otherwise.
*/
Image *load(SDL_RWops *const rw,
- Dye const &dye) override final A_WARN_UNUSED;
+ Dye const &dye) final A_WARN_UNUSED;
/**
* Loads an image from an SDL surface.
*/
Image *load(SDL_Surface *const tmpImage)
- override final A_WARN_UNUSED;
+ final A_WARN_UNUSED;
Image *createTextSurface(SDL_Surface *const tmpImage,
const int width, const int height,
const float alpha)
- override final A_WARN_UNUSED;
+ final A_WARN_UNUSED;
// OpenGL only public functions
@@ -122,13 +122,13 @@ class OpenGLImageHelper final : public ImageHelper
static void bindTexture(const GLuint texture);
SDL_Surface *create32BitSurface(int width,
- int height) const override final;
+ int height) const final;
- void postInit() override final;
+ void postInit() final;
void copySurfaceToImage(const Image *const image,
const int x, const int y,
- SDL_Surface *surface) const override final;
+ SDL_Surface *surface) const final;
protected:
/**
diff --git a/src/resources/openglscreenshothelper.h b/src/resources/openglscreenshothelper.h
index b6ccd2910..c19c737d1 100644
--- a/src/resources/openglscreenshothelper.h
+++ b/src/resources/openglscreenshothelper.h
@@ -40,9 +40,9 @@ class OpenGLScreenshotHelper final : public ScreenshotHelper
~OpenGLScreenshotHelper();
- void prepare() override final;
+ void prepare() final;
- SDL_Surface *getScreenshot() override final;
+ SDL_Surface *getScreenshot() final;
private:
FBOInfo mFbo;
diff --git a/src/resources/safeopenglimagehelper.h b/src/resources/safeopenglimagehelper.h
index 9b65f5262..ab4dcdb13 100644
--- a/src/resources/safeopenglimagehelper.h
+++ b/src/resources/safeopenglimagehelper.h
@@ -78,18 +78,18 @@ class SafeOpenGLImageHelper final : public ImageHelper
* otherwise.
*/
Image *load(SDL_RWops *const rw,
- Dye const &dye) override final A_WARN_UNUSED;
+ Dye const &dye) final A_WARN_UNUSED;
/**
* Loads an image from an SDL surface.
*/
Image *load(SDL_Surface *const tmpImage)
- override final A_WARN_UNUSED;
+ final A_WARN_UNUSED;
Image *createTextSurface(SDL_Surface *const tmpImage,
const int width, const int height,
const float alpha)
- override final A_WARN_UNUSED;
+ final A_WARN_UNUSED;
// OpenGL only public functions
@@ -122,13 +122,13 @@ class SafeOpenGLImageHelper final : public ImageHelper
static void bindTexture(const GLuint texture);
SDL_Surface *create32BitSurface(int width,
- int height) const override final;
+ int height) const final;
- void postInit() override final;
+ void postInit() final;
void copySurfaceToImage(const Image *const image,
const int x, const int y,
- SDL_Surface *surface) const override final;
+ SDL_Surface *surface) const final;
protected:
/**
diff --git a/src/resources/sdl2imagehelper.h b/src/resources/sdl2imagehelper.h
index c1065e957..cb955cb6a 100644
--- a/src/resources/sdl2imagehelper.h
+++ b/src/resources/sdl2imagehelper.h
@@ -55,17 +55,17 @@ class SDLImageHelper final : public ImageHelper
* Loads an image from an SDL surface.
*/
Image *load(SDL_Surface *const tmpImage)
- override final A_WARN_UNUSED;
+ final A_WARN_UNUSED;
Image *createTextSurface(SDL_Surface *const tmpImage,
const int width, const int height,
const float alpha)
- override final A_WARN_UNUSED;
+ final A_WARN_UNUSED;
void copySurfaceToImage(const Image *const image,
const int x, const int y,
SDL_Surface *const surface)
- const override final;
+ const final;
static void SDLSetEnableAlphaCache(const bool n)
{ mEnableAlphaCache = n; }
diff --git a/src/resources/sdl2softwareimagehelper.h b/src/resources/sdl2softwareimagehelper.h
index d8a9d218e..dac03ba36 100644
--- a/src/resources/sdl2softwareimagehelper.h
+++ b/src/resources/sdl2softwareimagehelper.h
@@ -54,12 +54,12 @@ class SDL2SoftwareImageHelper final : public ImageHelper
/**
* Loads an image from an SDL surface.
*/
- Image *load(SDL_Surface *const tmpImage) override final A_WARN_UNUSED;
+ Image *load(SDL_Surface *const tmpImage) final A_WARN_UNUSED;
Image *createTextSurface(SDL_Surface *const tmpImage,
const int width, const int height,
const float alpha)
- override final A_WARN_UNUSED;
+ final A_WARN_UNUSED;
static void SDLSetEnableAlphaCache(const bool n)
{ mEnableAlphaCache = n; }
diff --git a/src/resources/sdl2softwarescreenshothelper.h b/src/resources/sdl2softwarescreenshothelper.h
index f3b95e245..31144897f 100644
--- a/src/resources/sdl2softwarescreenshothelper.h
+++ b/src/resources/sdl2softwarescreenshothelper.h
@@ -38,9 +38,9 @@ class Sdl2SoftwareScreenshotHelper final : public ScreenshotHelper
~Sdl2SoftwareScreenshotHelper();
- void prepare() override final;
+ void prepare() final;
- SDL_Surface *getScreenshot() override final;
+ SDL_Surface *getScreenshot() final;
};
#endif // USE_SDL2
diff --git a/src/resources/sdlimagehelper.h b/src/resources/sdlimagehelper.h
index 731e1a14e..b9cffccfd 100644
--- a/src/resources/sdlimagehelper.h
+++ b/src/resources/sdlimagehelper.h
@@ -62,22 +62,22 @@ class SDLImageHelper final : public ImageHelper
* otherwise.
*/
Image *load(SDL_RWops *const rw,
- Dye const &dye) override final A_WARN_UNUSED;
+ Dye const &dye) final A_WARN_UNUSED;
/**
* Loads an image from an SDL surface.
*/
- Image *load(SDL_Surface *const tmpImage) override final A_WARN_UNUSED;
+ Image *load(SDL_Surface *const tmpImage) final A_WARN_UNUSED;
Image *createTextSurface(SDL_Surface *const tmpImage,
const int width, const int height,
const float alpha)
- override final A_WARN_UNUSED;
+ final A_WARN_UNUSED;
void copySurfaceToImage(const Image *const image,
const int x, const int y,
SDL_Surface *const surface)
- const override final;
+ const final;
static void SDLSetEnableAlphaCache(const bool n)
{ mEnableAlphaCache = n; }
diff --git a/src/resources/sdlscreenshothelper.h b/src/resources/sdlscreenshothelper.h
index 2b8acdbe5..1ee7096be 100644
--- a/src/resources/sdlscreenshothelper.h
+++ b/src/resources/sdlscreenshothelper.h
@@ -36,9 +36,9 @@ class SdlScreenshotHelper final : public ScreenshotHelper
~SdlScreenshotHelper();
- void prepare() override final A_CONST;
+ void prepare() final A_CONST;
- SDL_Surface *getScreenshot() override final;
+ SDL_Surface *getScreenshot() final;
};
#endif // RESOURCES_SDLSCREENSHOTHELPER_H
diff --git a/src/resources/sprite/animatedsprite.h b/src/resources/sprite/animatedsprite.h
index dcf8045fb..cdf5680eb 100644
--- a/src/resources/sprite/animatedsprite.h
+++ b/src/resources/sprite/animatedsprite.h
@@ -63,47 +63,47 @@ class AnimatedSprite final : public Sprite
~AnimatedSprite();
- bool reset() restrict2 override final;
+ bool reset() restrict2 final;
- bool play(const std::string &restrict action) restrict2 override final;
+ bool play(const std::string &restrict action) restrict2 final;
- bool update(const int time) restrict2 override final;
+ bool update(const int time) restrict2 final;
void draw(Graphics *restrict const graphics,
const int posX,
- const int posY) const restrict2 override final A_NONNULL(2);
+ const int posY) const restrict2 final A_NONNULL(2);
void drawRaw(Graphics *restrict const graphics,
const int posX,
const int posY) const restrict2 A_NONNULL(2);
- int getWidth() const restrict2 override final A_WARN_UNUSED;
+ int getWidth() const restrict2 final A_WARN_UNUSED;
- int getHeight() const restrict2 override final A_WARN_UNUSED;
+ int getHeight() const restrict2 final A_WARN_UNUSED;
- const Image* getImage() const restrict2 noexcept override final
+ const Image* getImage() const restrict2 noexcept final
A_WARN_UNUSED;
bool setSpriteDirection(const SpriteDirection::Type direction)
- restrict2 override final;
+ restrict2 final;
int getNumberOfLayers() const restrict2 noexcept A_WARN_UNUSED
{ return 1; }
std::string getIdPath() const restrict2 A_WARN_UNUSED;
- unsigned int getCurrentFrame() const restrict2 noexcept override final
+ unsigned int getCurrentFrame() const restrict2 noexcept final
A_WARN_UNUSED
{ return mFrameIndex; }
unsigned int getFrameCount() const
- restrict2 override final A_WARN_UNUSED;
+ restrict2 final A_WARN_UNUSED;
- void setAlpha(float alpha) restrict2 override final;
+ void setAlpha(float alpha) restrict2 final;
- const void *getHash() const restrict2 override final A_WARN_UNUSED;
+ const void *getHash() const restrict2 final A_WARN_UNUSED;
- bool updateNumber(const unsigned num) restrict2 override final;
+ bool updateNumber(const unsigned num) restrict2 final;
void clearDelayLoad() restrict2 noexcept
{ mDelayLoad = nullptr; }
diff --git a/src/resources/sprite/imagesprite.h b/src/resources/sprite/imagesprite.h
index c3fa39fae..21ff03d90 100644
--- a/src/resources/sprite/imagesprite.h
+++ b/src/resources/sprite/imagesprite.h
@@ -37,42 +37,42 @@ class ImageSprite final : public Sprite
~ImageSprite();
- bool reset() override final
+ bool reset() final
{ return false; }
- bool play(const std::string &action A_UNUSED) override final
+ bool play(const std::string &action A_UNUSED) final
{ return false; }
- bool update(const int time A_UNUSED) override final
+ bool update(const int time A_UNUSED) final
{ return false; }
void draw(Graphics *const graphics,
const int posX, const int posY)
- const override final A_NONNULL(2);
+ const final A_NONNULL(2);
- int getWidth() const override final A_WARN_UNUSED
+ int getWidth() const final A_WARN_UNUSED
{ return mImage ? mImage->getWidth() : 0; }
- int getHeight() const override final A_WARN_UNUSED
+ int getHeight() const final A_WARN_UNUSED
{ return mImage ? mImage->getHeight() : 0; }
- const Image* getImage() const override final A_WARN_UNUSED
+ const Image* getImage() const final A_WARN_UNUSED
{ return mImage; }
bool setSpriteDirection(const SpriteDirection::Type
- direction A_UNUSED) override final
+ direction A_UNUSED) final
{ return false; }
int getNumberOfLayers() const A_WARN_UNUSED
{ return 1; }
- unsigned int getCurrentFrame() const override final A_WARN_UNUSED
+ unsigned int getCurrentFrame() const final A_WARN_UNUSED
{ return 0; }
- unsigned int getFrameCount() const override final A_WARN_UNUSED
+ unsigned int getFrameCount() const final A_WARN_UNUSED
{ return 1; }
- bool updateNumber(const unsigned num A_UNUSED) override final
+ bool updateNumber(const unsigned num A_UNUSED) final
{ return false; }
private:
diff --git a/src/resources/subimage.h b/src/resources/subimage.h
index e7184574d..14d50e044 100644
--- a/src/resources/subimage.h
+++ b/src/resources/subimage.h
@@ -76,10 +76,10 @@ class SubImage final : public Image
*/
Image *getSubImage(const int x, const int y,
const int width,
- const int height) override final A_WARN_UNUSED;
+ const int height) final A_WARN_UNUSED;
#ifdef USE_OPENGL
- void decRef() override final;
+ void decRef() final;
#endif
SDL_Rect mInternalBounds;
diff --git a/src/resources/surfaceimagehelper.h b/src/resources/surfaceimagehelper.h
index c028748e7..3dc8dde89 100644
--- a/src/resources/surfaceimagehelper.h
+++ b/src/resources/surfaceimagehelper.h
@@ -57,12 +57,12 @@ class SurfaceImageHelper final : public ImageHelper
* Loads an image from an SDL surface.
*/
Image *load(SDL_Surface *const tmpImage)
- override final A_WARN_UNUSED;
+ final A_WARN_UNUSED;
Image *createTextSurface(SDL_Surface *const tmpImage,
const int width, const int height,
const float alpha)
- override final A_WARN_UNUSED;
+ final A_WARN_UNUSED;
static void SDLSetEnableAlphaCache(const bool n)
{ mEnableAlphaCache = n; }
@@ -74,7 +74,7 @@ class SurfaceImageHelper final : public ImageHelper
* Tells if the image was loaded using OpenGL or SDL
* @return true if OpenGL, false if SDL.
*/
- RenderType useOpenGL() const override final A_WARN_UNUSED;
+ RenderType useOpenGL() const final A_WARN_UNUSED;
static SDL_Surface* SDLDuplicateSurface(SDL_Surface *const tmpImage)
A_WARN_UNUSED;