diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-01-14 21:47:02 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-01-14 21:47:02 +0300 |
commit | 24a5939846bf593e17e09f3564d941a7c2a5bf27 (patch) | |
tree | e37187b6411480aeb385accc9345c14ab2652ebe /src/being/being.cpp | |
parent | 4424f769af82000bc84b9d4c9f46c20834a817e6 (diff) | |
download | mv-24a5939846bf593e17e09f3564d941a7c2a5bf27.tar.gz mv-24a5939846bf593e17e09f3564d941a7c2a5bf27.tar.bz2 mv-24a5939846bf593e17e09f3564d941a7c2a5bf27.tar.xz mv-24a5939846bf593e17e09f3564d941a7c2a5bf27.zip |
fix code style.
Diffstat (limited to 'src/being/being.cpp')
-rw-r--r-- | src/being/being.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp index 6e5fa5e92..641f8abd6 100644 --- a/src/being/being.cpp +++ b/src/being/being.cpp @@ -917,7 +917,7 @@ const Guild *Being::getGuild(const std::string &guildName) const { FOR_EACH (GuildsMapCIter, itr, mGuilds) { - Guild *const guild = itr->second; + const Guild *const guild = itr->second; if (guild && guild->getName() == guildName) return guild; } @@ -3298,12 +3298,11 @@ void Being::updatePets() } } -void Being::unassignPet(Being *const pet1) +void Being::unassignPet(const Being *const pet1) { FOR_EACH (std::vector<Being*>::iterator, it, mPets) { - Being *const pet = *it; - if (pet == pet1) + if (*it == pet1) { mPets.erase(it); return; |