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/particle.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/particle.cpp') diff --git a/src/particle.cpp b/src/particle.cpp index 30ed7ea89..d8b6166a1 100644 --- a/src/particle.cpp +++ b/src/particle.cpp @@ -197,11 +197,11 @@ bool Particle::update() if ((mLifetimePast - 1) % Particle::emitterSkip == 0) { for (EmitterIterator e = mChildEmitters.begin(); - e != mChildEmitters.end(); e++) + e != mChildEmitters.end(); ++e) { Particles newParticles = (*e)->createParticles(mLifetimePast); for (ParticleIterator p = newParticles.begin(); - p != newParticles.end(); p++) + p != newParticles.end(); ++p) { (*p)->moveBy(mPos); mChildParticles.push_back (*p); @@ -237,7 +237,7 @@ bool Particle::update() //update particle if ((*p)->update()) { - p++; + ++p; } else { @@ -255,7 +255,7 @@ void Particle::moveBy(const Vector &change) { mPos += change; for (ParticleIterator p = mChildParticles.begin(); - p != mChildParticles.end(); p++) + p != mChildParticles.end(); ++p) { if ((*p)->doesFollow()) (*p)->moveBy(change); @@ -433,7 +433,7 @@ void Particle::adjustEmitterSize(int w, int h) if (mAllowSizeAdjust) { for (EmitterIterator e = mChildEmitters.begin(); - e != mChildEmitters.end(); e++) + e != mChildEmitters.end(); ++e) { (*e)->adjustSize(w, h); } -- cgit v1.2.3-60-g2f50