From 1f9f3f097b7acecda205fbc5a3f4846b84c00ab5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 6 May 2016 19:20:37 +0300 Subject: Add missing const. --- src/resources/action.cpp | 2 +- src/resources/sprite/spritedef.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/resources/action.cpp b/src/resources/action.cpp index a44cc1aee..ff7a48997 100644 --- a/src/resources/action.cpp +++ b/src/resources/action.cpp @@ -97,7 +97,7 @@ int Action::calcMemoryChilds(const int level) const FOR_EACH (AnimationCIter, it, mAnimations) { sz += sizeof(SpriteDirection::Type); - Animation *const animation = (*it).second; + const Animation *const animation = (*it).second; sz += animation->calcMemory(level + 1); } return sz; diff --git a/src/resources/sprite/spritedef.cpp b/src/resources/sprite/spritedef.cpp index d0985860c..0662ef7bf 100644 --- a/src/resources/sprite/spritedef.cpp +++ b/src/resources/sprite/spritedef.cpp @@ -624,7 +624,7 @@ int SpriteDef::calcMemoryChilds(const int level) const FOR_EACHP (ActionMap::const_iterator, it2, actionMap) { sz += static_cast((*it2).first.capacity()); - Action *const action = (*it2).second; + const Action *const action = (*it2).second; sz += action->calcMemory(level + 1); } } -- cgit v1.2.3-70-g09d2