summaryrefslogtreecommitdiff
path: root/src/being/being.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-02-02 12:48:01 +0300
committerAndrei Karas <akaras@inbox.ru>2014-02-02 12:48:01 +0300
commit3f76d07b673de76d7c4e434bd5a214f3480927cb (patch)
treee44953d0e1ba69146709b92d619f5f1970b20d36 /src/being/being.cpp
parent7f9d948a34c0afeb2fbf3e663d058048248b622f (diff)
downloadmv-3f76d07b673de76d7c4e434bd5a214f3480927cb.tar.gz
mv-3f76d07b673de76d7c4e434bd5a214f3480927cb.tar.bz2
mv-3f76d07b673de76d7c4e434bd5a214f3480927cb.tar.xz
mv-3f76d07b673de76d7c4e434bd5a214f3480927cb.zip
Add missing const and static into being classes.
Diffstat (limited to 'src/being/being.cpp')
-rw-r--r--src/being/being.cpp7
1 files changed, 3 insertions, 4 deletions
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<int> &slotRemap,
void Being::searchSlotValueItr(std::vector<int>::iterator &it, int &idx,
std::vector<int> &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));
}