Prefix VS Postfix increment
This commit is contained in:
@@ -29,7 +29,7 @@ JZipCache::JZipCache(){}
|
||||
|
||||
JZipCache::~JZipCache(){
|
||||
map<string,unz_file_pos *>::iterator it;
|
||||
for (it = dir.begin(); it != dir.end(); it++){
|
||||
for (it = dir.begin(); it != dir.end(); ++it){
|
||||
delete(it->second);
|
||||
}
|
||||
dir.clear();
|
||||
@@ -108,7 +108,7 @@ JFileSystem::~JFileSystem()
|
||||
DetachZipFile();
|
||||
|
||||
map<string,JZipCache *>::iterator it;
|
||||
for (it = mZipCache.begin(); it != mZipCache.end(); it++){
|
||||
for (it = mZipCache.begin(); it != mZipCache.end(); ++it){
|
||||
delete(it->second);
|
||||
}
|
||||
mZipCache.clear();
|
||||
|
||||
@@ -55,7 +55,7 @@ void JParticleSystem::Update(float dt)
|
||||
mEffects.erase(curr++);
|
||||
}
|
||||
else
|
||||
curr++;
|
||||
++curr;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -74,7 +74,7 @@ void JParticleSystem::Render()
|
||||
effect = *curr;
|
||||
effect->Render();
|
||||
|
||||
curr++;
|
||||
++curr;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -92,7 +92,7 @@ void JParticleSystem::StartEffect(JParticleEffect* effect)
|
||||
effect->Start();
|
||||
return;
|
||||
}
|
||||
curr++;
|
||||
++curr;
|
||||
}
|
||||
mEffects.push_back(effect);
|
||||
effect->SetParticleSystem(this);
|
||||
@@ -111,7 +111,7 @@ void JParticleSystem::StopAllEffects()
|
||||
{
|
||||
effect = *curr;
|
||||
effect->Stop();
|
||||
curr++;
|
||||
++curr;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user