From f24ddad3fa0f843eb29a281426151cf1a5f31f4b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 4 Sep 2012 23:47:11 +0300 Subject: add const to more classes, fix other small style issues. --- src/being.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/being.cpp') diff --git a/src/being.cpp b/src/being.cpp index ce6ec1a0e..4ca664dc6 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -2267,7 +2267,7 @@ void Being::recalcSpritesOrder() mSpriteHide[remSprite] = repIt->second; if (repIt->second != 1) { - if (remSprite != hairSlot) + if ((unsigned)remSprite != hairSlot) { setSprite(remSprite, repIt->second, mSpriteColors[remSprite], @@ -2558,7 +2558,7 @@ std::string Being::loadComment(const std::string &name, const int type) logger->log("load from: %s", str.c_str()); StringVect lines; - ResourceManager *const resman = ResourceManager::getInstance(); + const ResourceManager *const resman = ResourceManager::getInstance(); if (resman->existsLocal(str)) { lines = resman->loadTextFileLocal(str); @@ -2584,7 +2584,7 @@ void Being::saveComment(const std::string &name, return; } dir += stringToHexPath(name); - ResourceManager *const resman = ResourceManager::getInstance(); + const ResourceManager *const resman = ResourceManager::getInstance(); resman->saveTextFile(dir, "comment.txt", name + "\n" + comment); } -- cgit v1.2.3-60-g2f50