diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-12-12 18:26:16 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-12-12 18:26:16 +0300 |
commit | 67638eeec5267977940dce29c5a94ce4d093ed69 (patch) | |
tree | 2bacbaba1379e57c846929ef31e949fb2bd7f946 /src/being/compoundsprite.h | |
parent | 3308da97a29b1170e720b4341456bb39869bed24 (diff) | |
download | mv-67638eeec5267977940dce29c5a94ce4d093ed69.tar.gz mv-67638eeec5267977940dce29c5a94ce4d093ed69.tar.bz2 mv-67638eeec5267977940dce29c5a94ce4d093ed69.tar.xz mv-67638eeec5267977940dce29c5a94ce4d093ed69.zip |
Add constexpr and noexcept into some methods.
Diffstat (limited to 'src/being/compoundsprite.h')
-rw-r--r-- | src/being/compoundsprite.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/being/compoundsprite.h b/src/being/compoundsprite.h index 3c4002569..de9c8cf6e 100644 --- a/src/being/compoundsprite.h +++ b/src/being/compoundsprite.h @@ -97,13 +97,13 @@ class CompoundSprite notfinal : public Sprite bool updateNumber(const unsigned num) override final; - static void setEnableDelay(bool b) + constexpr static void setEnableDelay(bool b) noexcept2 { mEnableDelay = b; } - int getLastTime() const A_WARN_UNUSED + int getLastTime() const noexcept2 A_WARN_UNUSED { return mLastTime; } - int getStartTime() const A_WARN_UNUSED + int getStartTime() const noexcept2 A_WARN_UNUSED { return mStartTime; } std::vector<Sprite*> mSprites; |