From 55480eb4477b2cf85af1bcdcc5e8ec4f4ce6682d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 17 Apr 2016 20:03:14 +0300 Subject: Remove override keyword, if it present with final. --- src/resources/sprite/animatedsprite.h | 26 +++++++++++++------------- src/resources/sprite/imagesprite.h | 22 +++++++++++----------- 2 files changed, 24 insertions(+), 24 deletions(-) (limited to 'src/resources/sprite') 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: -- cgit v1.2.3-60-g2f50