summaryrefslogtreecommitdiff
path: root/src/resources/action.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-02 21:25:21 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-02 21:25:21 +0300
commit0534847df83047f1ce2605187d45a762ffeae11e (patch)
tree92365ee5ec086b3c65f024096df9d63bd05b31d4 /src/resources/action.cpp
parent4f390339f8107c376a10151a2cae889c0ec01089 (diff)
downloadplus-0534847df83047f1ce2605187d45a762ffeae11e.tar.gz
plus-0534847df83047f1ce2605187d45a762ffeae11e.tar.bz2
plus-0534847df83047f1ce2605187d45a762ffeae11e.tar.xz
plus-0534847df83047f1ce2605187d45a762ffeae11e.zip
Add const to more classes.
Diffstat (limited to 'src/resources/action.cpp')
-rw-r--r--src/resources/action.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/resources/action.cpp b/src/resources/action.cpp
index 2c1c5d080..5e70f5f4b 100644
--- a/src/resources/action.cpp
+++ b/src/resources/action.cpp
@@ -65,17 +65,17 @@ Animation *Action::getAnimation(int direction) const
return (i == mAnimations.end()) ? nullptr : i->second;
}
-void Action::setAnimation(int direction, Animation *animation)
+void Action::setAnimation(const int direction, Animation *const animation)
{
mAnimations[direction] = animation;
}
-void Action::setLastFrameDelay(int delay)
+void Action::setLastFrameDelay(const int delay)
{
for (AnimationIter it = mAnimations.begin(),
it_end = mAnimations.end(); it != it_end; ++ it)
{
- Animation *animation = (*it).second;
+ Animation *const animation = (*it).second;
if (!animation)
continue;
animation->setLastFrameDelay(delay);