From b91ccaac17551591ffafadee4323ff76076f7b69 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 19 Dec 2013 22:31:44 +0300 Subject: add noexcept into action. --- src/resources/action.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'src/resources/action.h') diff --git a/src/resources/action.h b/src/resources/action.h index c3b4852b3..43259d5c6 100644 --- a/src/resources/action.h +++ b/src/resources/action.h @@ -35,23 +35,25 @@ class Animation; class Action final { public: - Action(); + Action() noexcept; A_DELETE_COPY(Action) ~Action(); - void setAnimation(const int direction, Animation *const animation); + void setAnimation(const int direction, + Animation *const animation) noexcept; - const Animation *getAnimation(int direction) const A_WARN_UNUSED; + const Animation *getAnimation(int direction) const + noexcept A_WARN_UNUSED; - unsigned getNumber() const A_WARN_UNUSED + unsigned getNumber() const noexcept A_WARN_UNUSED { return mNumber; } - void setNumber(const unsigned n) + void setNumber(const unsigned n) noexcept { mNumber = n; } - void setLastFrameDelay(const int delay); + void setLastFrameDelay(const int delay) noexcept; protected: typedef std::map Animations; -- cgit v1.2.3-60-g2f50