summaryrefslogtreecommitdiff
path: root/src/resources/db/badgesdb.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/db/badgesdb.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/db/badgesdb.cpp')
-rw-r--r--src/resources/db/badgesdb.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/resources/db/badgesdb.cpp b/src/resources/db/badgesdb.cpp
index 1aa6167e2..059a22112 100644
--- a/src/resources/db/badgesdb.cpp
+++ b/src/resources/db/badgesdb.cpp
@@ -82,7 +82,7 @@ void BadgesDB::unload()
const std::string BadgesDB::getPartyBadge(const std::string &name)
{
- BadgesInfosIter it = mParties.find(name);
+ const BadgesInfosIter it = mParties.find(name);
if (it == mParties.end())
return std::string();
return (*it).second;
@@ -90,7 +90,7 @@ const std::string BadgesDB::getPartyBadge(const std::string &name)
const std::string BadgesDB::getNameBadge(const std::string &name)
{
- BadgesInfosIter it = mNames.find(name);
+ const BadgesInfosIter it = mNames.find(name);
if (it == mNames.end())
return std::string();
return (*it).second;
@@ -98,7 +98,7 @@ const std::string BadgesDB::getNameBadge(const std::string &name)
const std::string BadgesDB::getGuildBadge(const std::string &name)
{
- BadgesInfosIter it = mGuilds.find(name);
+ const BadgesInfosIter it = mGuilds.find(name);
if (it == mGuilds.end())
return std::string();
return (*it).second;