From 5f97d3fd31bb5a17037610342ea09c21da9c47d3 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 25 Aug 2012 12:55:31 +0300 Subject: change vars and methods to const. --- src/animationdelayload.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/animationdelayload.cpp') 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); -- cgit v1.2.3-70-g09d2