From 9ac2b59da5a900c000e2bdd52d72c5c874f75fbb Mon Sep 17 00:00:00 2001 From: manuel Date: Tue, 19 Apr 2011 22:35:35 +0200 Subject: coding conventions --- pacman-c++/sceneholder.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'pacman-c++/sceneholder.cpp') diff --git a/pacman-c++/sceneholder.cpp b/pacman-c++/sceneholder.cpp index 37db691..3f92860 100644 --- a/pacman-c++/sceneholder.cpp +++ b/pacman-c++/sceneholder.cpp @@ -73,9 +73,8 @@ void SceneHolder::updateMap(const Transmission::map_t& map, const unsigned int x } /* an item must be removed by an actor */ - if (actor == NULL) { + if (actor == NULL) Q_ASSERT(false); - } oldItem->onDie(actor); /* register item for removal in next update */ @@ -201,9 +200,8 @@ unsigned int SceneHolder::pointsLeft() void SceneHolder::decrementPoints() { --m_pointsLeft; - if (m_pointsLeft == 0) { + if (m_pointsLeft == 0) emit allPointsRemoved(); - } } void SceneHolder::setEatingOrder(QList &order) -- cgit v1.2.3