From e2150d04662a4ba8b5304dabcc74be0bacded5b7 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 15 Jan 2011 01:07:47 +0200 Subject: Fix code style, apply some fixes after checking with cppcheck from git. --- src/particlecontainer.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/particlecontainer.cpp') diff --git a/src/particlecontainer.cpp b/src/particlecontainer.cpp index 68e5f64e4..efb11ab8b 100644 --- a/src/particlecontainer.cpp +++ b/src/particlecontainer.cpp @@ -85,7 +85,7 @@ void ParticleList::removeLocally(Particle *particle) } else { - it++; + ++it; } } } @@ -93,7 +93,7 @@ void ParticleList::removeLocally(Particle *particle) void ParticleList::clearLocally() { for (std::list::iterator it = mElements.begin(); - it != mElements.end(); it++) + it != mElements.end(); ++it) { (*it)->kill(); } @@ -116,7 +116,7 @@ void ParticleList::moveTo(float x, float y) } else { - it++; + ++it; } } } @@ -172,7 +172,7 @@ void ParticleVector::moveTo(float x, float y) ParticleContainer::moveTo(x, y); for (std::vector::iterator it = mIndexedElements.begin(); - it != mIndexedElements.end(); it++) + it != mIndexedElements.end(); ++it) { if (*it) { -- cgit v1.2.3-70-g09d2