From 24a5939846bf593e17e09f3564d941a7c2a5bf27 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 14 Jan 2014 21:47:02 +0300 Subject: fix code style. --- src/being/being.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/being/being.cpp') 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::iterator, it, mPets) { - Being *const pet = *it; - if (pet == pet1) + if (*it == pet1) { mPets.erase(it); return; -- cgit v1.2.3-70-g09d2