summaryrefslogtreecommitdiff
path: root/src/resources/emotedb.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-01 21:35:49 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-01 22:40:36 +0300
commitfc854786ed73fe768d6a3ca22c02f7013560a930 (patch)
tree3a12f555d194679957559760567ff8eb701b494b /src/resources/emotedb.cpp
parent09d74d9273cca445b7019edacaff53452a1eee3c (diff)
downloadmanaplus-fc854786ed73fe768d6a3ca22c02f7013560a930.tar.gz
manaplus-fc854786ed73fe768d6a3ca22c02f7013560a930.tar.bz2
manaplus-fc854786ed73fe768d6a3ca22c02f7013560a930.tar.xz
manaplus-fc854786ed73fe768d6a3ca22c02f7013560a930.zip
Fix code style.
Diffstat (limited to 'src/resources/emotedb.cpp')
-rw-r--r--src/resources/emotedb.cpp18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/resources/emotedb.cpp b/src/resources/emotedb.cpp
index b3628cdeb..a8e8b434f 100644
--- a/src/resources/emotedb.cpp
+++ b/src/resources/emotedb.cpp
@@ -181,11 +181,12 @@ void EmoteDB::unload()
{
if (i->second)
{
- while (!i->second->sprites.empty())
+ std::list<EmoteSprite*> &sprites = i->second->sprites;
+ while (!sprites.empty())
{
- delete i->second->sprites.front()->sprite;
- delete i->second->sprites.front();
- i->second->sprites.pop_front();
+ delete sprites.front()->sprite;
+ delete sprites.front();
+ sprites.pop_front();
}
delete i->second;
}
@@ -193,11 +194,12 @@ void EmoteDB::unload()
mEmoteInfos.clear();
- while (!mUnknown.sprites.empty())
+ std::list<EmoteSprite*> &sprites = mUnknown.sprites;
+ while (!sprites.empty())
{
- delete mUnknown.sprites.front()->sprite;
- delete mUnknown.sprites.front();
- mUnknown.sprites.pop_front();
+ delete sprites.front()->sprite;
+ delete sprites.front();
+ sprites.pop_front();
}
mLoaded = false;