diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-04-30 21:18:24 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-04-30 21:18:24 +0300 |
commit | 9ff808fb20962884d56147d46c8e4de915a0735d (patch) | |
tree | b09025e75c2e57a48e5be971953edbc14b466846 /src/resources/sprite/animatedsprite.h | |
parent | aaa274245a584c633dcfdb5444bbc1dc21c0c28f (diff) | |
download | ManaVerse-9ff808fb20962884d56147d46c8e4de915a0735d.tar.gz ManaVerse-9ff808fb20962884d56147d46c8e4de915a0735d.tar.bz2 ManaVerse-9ff808fb20962884d56147d46c8e4de915a0735d.tar.xz ManaVerse-9ff808fb20962884d56147d46c8e4de915a0735d.zip |
Disable noexcept for clang and old gcc versions.
Diffstat (limited to 'src/resources/sprite/animatedsprite.h')
-rw-r--r-- | src/resources/sprite/animatedsprite.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/resources/sprite/animatedsprite.h b/src/resources/sprite/animatedsprite.h index dcf8045fb..702896be3 100644 --- a/src/resources/sprite/animatedsprite.h +++ b/src/resources/sprite/animatedsprite.h @@ -81,18 +81,18 @@ class AnimatedSprite final : public Sprite int getHeight() const restrict2 override final A_WARN_UNUSED; - const Image* getImage() const restrict2 noexcept override final + const Image* getImage() const restrict2 noexcept2 override final A_WARN_UNUSED; bool setSpriteDirection(const SpriteDirection::Type direction) restrict2 override final; - int getNumberOfLayers() const restrict2 noexcept A_WARN_UNUSED + int getNumberOfLayers() const restrict2 noexcept2 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 noexcept2 override final A_WARN_UNUSED { return mFrameIndex; } @@ -105,19 +105,19 @@ class AnimatedSprite final : public Sprite bool updateNumber(const unsigned num) restrict2 override final; - void clearDelayLoad() restrict2 noexcept + void clearDelayLoad() restrict2 noexcept2 { mDelayLoad = nullptr; } - void setSprite(SpriteDef *restrict const sprite) restrict2 noexcept + void setSprite(SpriteDef *restrict const sprite) restrict2 noexcept2 { mSprite = sprite; } - bool isTerminated() const restrict2 noexcept + bool isTerminated() const restrict2 noexcept2 { return mTerminated; } - static void setEnableCache(const bool b) noexcept + static void setEnableCache(const bool b) noexcept2 { mEnableCache = b; } - void setLastTime(const int time) noexcept + void setLastTime(const int time) noexcept2 { mLastTime = time; } #ifdef UNITTESTS |