summaryrefslogtreecommitdiff
path: root/src/animationdelayload.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-25 12:55:31 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-25 12:55:31 +0300
commit5f97d3fd31bb5a17037610342ea09c21da9c47d3 (patch)
treead32a4c8835c6b9273414e3b412c44e41270e708 /src/animationdelayload.cpp
parentda457cf152d5aff51d859c18d3668682348dbf7a (diff)
downloadplus-5f97d3fd31bb5a17037610342ea09c21da9c47d3.tar.gz
plus-5f97d3fd31bb5a17037610342ea09c21da9c47d3.tar.bz2
plus-5f97d3fd31bb5a17037610342ea09c21da9c47d3.tar.xz
plus-5f97d3fd31bb5a17037610342ea09c21da9c47d3.zip
change vars and methods to const.
Diffstat (limited to 'src/animationdelayload.cpp')
-rw-r--r--src/animationdelayload.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/animationdelayload.cpp b/src/animationdelayload.cpp
index 0ce50ec2c..79334d69b 100644
--- a/src/animationdelayload.cpp
+++ b/src/animationdelayload.cpp
@@ -27,7 +27,8 @@
#include "debug.h"
AnimationDelayLoad::AnimationDelayLoad(const std::string &fileName,
- int variant, AnimatedSprite *sprite) :
+ const int variant,
+ AnimatedSprite *const sprite) :
mFileName(fileName),
mVariant(variant),
mSprite(sprite),
@@ -53,8 +54,8 @@ void AnimationDelayLoad::load()
{
if (mSprite)
{
- ResourceManager *resman = ResourceManager::getInstance();
- SpriteDef *s = resman->getSprite(mFileName, mVariant);
+ ResourceManager *const resman = ResourceManager::getInstance();
+ SpriteDef *const s = resman->getSprite(mFileName, mVariant);
if (!s)
return;
mSprite->setSprite(s);