From 99906c44cf9208dee4e808e03fddd1f209b6b7fc Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 28 Sep 2013 00:58:25 +0300 Subject: add const for methods return values. --- src/animatedsprite.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/animatedsprite.cpp') 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) { -- cgit v1.2.3-60-g2f50