From 6e190e44b01f5e1780e14e7a60262d3d10e3d48f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 29 Apr 2011 01:38:41 +0300 Subject: Fix code style. --- src/gui/widgets/avatarlistbox.cpp | 3 ++- src/localplayer.h | 12 ++++++++---- src/resources/mapreader.cpp | 2 +- 3 files changed, 11 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/gui/widgets/avatarlistbox.cpp b/src/gui/widgets/avatarlistbox.cpp index d16388837..8ad6fff2e 100644 --- a/src/gui/widgets/avatarlistbox.cpp +++ b/src/gui/widgets/avatarlistbox.cpp @@ -345,7 +345,8 @@ void AvatarListBox::mousePressed(gcn::MouseEvent &event) Avatar *ava = model->getAvatarAt(selected); if (map && ava) { - MapItem *mapItem = map->findPortalXY(ava->getX(), ava->getY()); + MapItem *mapItem = map->findPortalXY( + ava->getX(), ava->getY()); viewport->showPopup(mapItem); } break; diff --git a/src/localplayer.h b/src/localplayer.h index b20a89786..e48afff12 100644 --- a/src/localplayer.h +++ b/src/localplayer.h @@ -453,12 +453,16 @@ class LocalPlayer : public Being, public ActorSpriteListener, { return mAttackMobsSet.find(name) != mAttackMobsSet.end(); } bool isInPriorityAttackList(const std::string &name) - { return mPriorityAttackMobsSet.find(name) - != mPriorityAttackMobsSet.end(); } + { + return mPriorityAttackMobsSet.find(name) + != mPriorityAttackMobsSet.end(); + } bool isInIgnoreAttackList(const std::string &name) - { return mIgnoreAttackMobsSet.find(name) - != mIgnoreAttackMobsSet.end(); } + { + return mIgnoreAttackMobsSet.find(name) + != mIgnoreAttackMobsSet.end(); + } /* bool isInAttackOrIgnoreList(const std::string &name) diff --git a/src/resources/mapreader.cpp b/src/resources/mapreader.cpp index 51e1741f2..818968621 100644 --- a/src/resources/mapreader.cpp +++ b/src/resources/mapreader.cpp @@ -472,7 +472,7 @@ void MapReader::readLayer(xmlNodePtr node, Map *map) xmlNodeGetContent(dataChild)); if (!charStart) { - delete charData; + delete[] charData; return; } -- cgit v1.2.3-70-g09d2