From f3d00667c5a1bffa5a04d5e86676caca6979b58d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 6 May 2016 19:18:09 +0300 Subject: Fix code style. --- src/resources/sprite/spritedef.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/resources/sprite') diff --git a/src/resources/sprite/spritedef.cpp b/src/resources/sprite/spritedef.cpp index e0919b10b..d0985860c 100644 --- a/src/resources/sprite/spritedef.cpp +++ b/src/resources/sprite/spritedef.cpp @@ -596,14 +596,14 @@ bool SpriteDef::addSequence(const int start, int SpriteDef::calcMemoryLocal() const { - int sz = sizeof(SpriteDef) + + int sz = static_cast(sizeof(SpriteDef) + sizeof(ImageSets) + sizeof(Actions) + - sizeof(std::set) + + sizeof(std::set)) + Resource::calcMemoryLocal(); FOR_EACH (std::set::const_iterator, it, mProcessedFiles) { - sz += (*it).capacity(); + sz += static_cast((*it).capacity()); } return sz; } @@ -613,7 +613,7 @@ int SpriteDef::calcMemoryChilds(const int level) const int sz = 0; FOR_EACH (ImageSets::const_iterator, it, mImageSets) { - sz += (*it).first.capacity(); + sz += static_cast((*it).first.capacity()); const ImageSet *const imageSet = (*it).second; sz += imageSet->calcMemory(level + 1); } @@ -623,7 +623,7 @@ int SpriteDef::calcMemoryChilds(const int level) const const ActionMap *const actionMap = (*it).second; FOR_EACHP (ActionMap::const_iterator, it2, actionMap) { - sz += (*it2).first.capacity(); + sz += static_cast((*it2).first.capacity()); Action *const action = (*it2).second; sz += action->calcMemory(level + 1); } -- cgit v1.2.3-60-g2f50