summaryrefslogtreecommitdiff
path: root/src/resources/emotedb.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/emotedb.cpp')
-rw-r--r--src/resources/emotedb.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/resources/emotedb.cpp b/src/resources/emotedb.cpp
index 3ee40f0e..857cd591 100644
--- a/src/resources/emotedb.cpp
+++ b/src/resources/emotedb.cpp
@@ -90,7 +90,8 @@ void EmoteDB::load()
}
}
mEmoteInfos[id] = currentInfo;
- if (id > mLastEmote) mLastEmote = id;
+ if (id > mLastEmote)
+ mLastEmote = id;
}
mLoaded = true;
@@ -98,9 +99,9 @@ void EmoteDB::load()
void EmoteDB::unload()
{
- for ( EmoteInfosIterator i = mEmoteInfos.begin();
- i != mEmoteInfos.end();
- i++)
+ for (EmoteInfos::const_iterator i = mEmoteInfos.begin();
+ i != mEmoteInfos.end();
+ i++)
{
while (!i->second->sprites.empty())
{
@@ -125,7 +126,7 @@ void EmoteDB::unload()
const EmoteInfo *EmoteDB::get(int id)
{
- EmoteInfosIterator i = mEmoteInfos.find(id);
+ EmoteInfos::const_iterator i = mEmoteInfos.find(id);
if (i == mEmoteInfos.end())
{