summaryrefslogtreecommitdiff
path: root/src/resources/action.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-12-19 22:31:44 +0300
committerAndrei Karas <akaras@inbox.ru>2013-12-19 22:31:44 +0300
commitb91ccaac17551591ffafadee4323ff76076f7b69 (patch)
tree8e89c80d6adb7ca29cfcbf7bc6319829ab78a6f6 /src/resources/action.cpp
parent4ce68c50a49c0c9391b37a17505313d834f93c22 (diff)
downloadmanaverse-b91ccaac17551591ffafadee4323ff76076f7b69.tar.gz
manaverse-b91ccaac17551591ffafadee4323ff76076f7b69.tar.bz2
manaverse-b91ccaac17551591ffafadee4323ff76076f7b69.tar.xz
manaverse-b91ccaac17551591ffafadee4323ff76076f7b69.zip
add noexcept into action.
Diffstat (limited to 'src/resources/action.cpp')
-rw-r--r--src/resources/action.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/resources/action.cpp b/src/resources/action.cpp
index 9b4d4b57a..d7bf44911 100644
--- a/src/resources/action.cpp
+++ b/src/resources/action.cpp
@@ -29,7 +29,7 @@
#include "debug.h"
-Action::Action() :
+Action::Action() noexcept :
mAnimations(),
mNumber(100)
{
@@ -40,7 +40,7 @@ Action::~Action()
delete_all(mAnimations);
}
-const Animation *Action::getAnimation(int direction) const
+const Animation *Action::getAnimation(int direction) const noexcept
{
Animations::const_iterator i = mAnimations.find(direction);
@@ -66,12 +66,13 @@ const Animation *Action::getAnimation(int direction) const
return (i == mAnimations.end()) ? nullptr : i->second;
}
-void Action::setAnimation(const int direction, Animation *const animation)
+void Action::setAnimation(const int direction,
+ Animation *const animation) noexcept
{
mAnimations[direction] = animation;
}
-void Action::setLastFrameDelay(const int delay)
+void Action::setLastFrameDelay(const int delay) noexcept
{
FOR_EACH (AnimationIter, it, mAnimations)
{