summaryrefslogtreecommitdiff
path: root/src/animatedsprite.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-09-28 00:58:25 +0300
committerAndrei Karas <akaras@inbox.ru>2013-09-28 23:40:11 +0300
commit99906c44cf9208dee4e808e03fddd1f209b6b7fc (patch)
tree8472ed92c0963938dee4290d25cd6c4ebf2e4d81 /src/animatedsprite.cpp
parentc430b75e370a21a17f80d4ba3acd84111828a462 (diff)
downloadplus-99906c44cf9208dee4e808e03fddd1f209b6b7fc.tar.gz
plus-99906c44cf9208dee4e808e03fddd1f209b6b7fc.tar.bz2
plus-99906c44cf9208dee4e808e03fddd1f209b6b7fc.tar.xz
plus-99906c44cf9208dee4e808e03fddd1f209b6b7fc.zip
add const for methods return values.
Diffstat (limited to 'src/animatedsprite.cpp')
-rw-r--r--src/animatedsprite.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/animatedsprite.cpp b/src/animatedsprite.cpp
index bbfde2adb..0bcb78713 100644
--- a/src/animatedsprite.cpp
+++ b/src/animatedsprite.cpp
@@ -142,7 +142,7 @@ bool AnimatedSprite::play(const std::string &spriteAction)
return false;
mAction = action;
- Animation *const animation = mAction->getAnimation(mDirection);
+ const Animation *const animation = mAction->getAnimation(mDirection);
if (animation && animation != mAnimation && animation->getLength() > 0)
{
@@ -307,7 +307,7 @@ bool AnimatedSprite::setSpriteDirection(const SpriteDirection direction)
if (!mAction)
return false;
- Animation *const animation = mAction->getAnimation(mDirection);
+ const Animation *const animation = mAction->getAnimation(mDirection);
if (animation && animation != mAnimation && animation->getLength() > 0)
{