From 3f76d07b673de76d7c4e434bd5a214f3480927cb Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 2 Feb 2014 12:48:01 +0300 Subject: Add missing const and static into being classes. --- src/being/being.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/being/being.cpp') diff --git a/src/being/being.cpp b/src/being/being.cpp index f9667ca33..fef3ca53a 100644 --- a/src/being/being.cpp +++ b/src/being/being.cpp @@ -2964,7 +2964,7 @@ int Being::searchSlotValue(const std::vector &slotRemap, void Being::searchSlotValueItr(std::vector::iterator &it, int &idx, std::vector &slotRemap, - const int val) const + const int val) { // logger->log("searching %d", val); it = slotRemap.begin(); @@ -3052,7 +3052,7 @@ std::string Being::loadComment(const std::string &name, const int type) str.append(stringToHexPath(name)).append("/comment.txt"); const ResourceManager *const resman = ResourceManager::getInstance(); - if (resman->existsLocal(str)) + if (ResourceManager::existsLocal(str)) { StringVect lines; resman->loadTextFileLocal(str, lines); @@ -3078,8 +3078,7 @@ void Being::saveComment(const std::string &restrict name, return; } dir.append(stringToHexPath(name)); - const ResourceManager *const resman = ResourceManager::getInstance(); - resman->saveTextFile(dir, "comment.txt", + ResourceManager::saveTextFile(dir, "comment.txt", (name + "\n").append(comment)); } -- cgit v1.2.3-60-g2f50