From 67638eeec5267977940dce29c5a94ce4d093ed69 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 12 Dec 2016 18:26:16 +0300 Subject: Add constexpr and noexcept into some methods. --- src/resources/sprite/animatedsprite.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/resources/sprite/animatedsprite.h') diff --git a/src/resources/sprite/animatedsprite.h b/src/resources/sprite/animatedsprite.h index 7f8332e46..27d6b61a5 100644 --- a/src/resources/sprite/animatedsprite.h +++ b/src/resources/sprite/animatedsprite.h @@ -114,7 +114,7 @@ class AnimatedSprite final : public Sprite bool isTerminated() const restrict2 noexcept2 { return mTerminated; } - static void setEnableCache(const bool b) noexcept2 + constexpr static void setEnableCache(const bool b) noexcept2 { mEnableCache = b; } void setLastTime(const int time) noexcept2 -- cgit v1.2.3-70-g09d2