diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-08-25 12:55:31 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-08-25 12:55:31 +0300 |
commit | 5f97d3fd31bb5a17037610342ea09c21da9c47d3 (patch) | |
tree | ad32a4c8835c6b9273414e3b412c44e41270e708 /src/animationdelayload.cpp | |
parent | da457cf152d5aff51d859c18d3668682348dbf7a (diff) | |
download | plus-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.cpp | 7 |
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); |