summaryrefslogtreecommitdiff
path: root/src/resources/chatobject.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-20 21:20:20 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-20 21:20:20 +0300
commit8fb2c062cd1c03f032b99f4a7e7663c0653ba837 (patch)
tree0bb3cd9a01f0158822ae58a0d56b8b1808cb9bbc /src/resources/chatobject.cpp
parenta9f6959a96395edc64ff57bf5ba1d75cca8e86c3 (diff)
downloadmv-8fb2c062cd1c03f032b99f4a7e7663c0653ba837.tar.gz
mv-8fb2c062cd1c03f032b99f4a7e7663c0653ba837.tar.bz2
mv-8fb2c062cd1c03f032b99f4a7e7663c0653ba837.tar.xz
mv-8fb2c062cd1c03f032b99f4a7e7663c0653ba837.zip
Add missing const in resources directory.
Diffstat (limited to 'src/resources/chatobject.cpp')
-rw-r--r--src/resources/chatobject.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resources/chatobject.cpp b/src/resources/chatobject.cpp
index a601a3c69..3a8ac56f8 100644
--- a/src/resources/chatobject.cpp
+++ b/src/resources/chatobject.cpp
@@ -53,7 +53,7 @@ void ChatObject::update()
ChatObject *ChatObject::findByName(const std::string &name)
{
- std::map<std::string, ChatObject*>::iterator it = chatNameMap.find(name);
+ const std::map<std::string, ChatObject*>::iterator it = chatNameMap.find(name);
if (it == chatNameMap.end())
return nullptr;
else
@@ -62,7 +62,7 @@ ChatObject *ChatObject::findByName(const std::string &name)
ChatObject *ChatObject::findById(const int id)
{
- std::map<int, ChatObject*>::iterator it = chatIdMap.find(id);
+ const std::map<int, ChatObject*>::iterator it = chatIdMap.find(id);
if (it == chatIdMap.end())
return nullptr;
else