mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-26 23:59:30 +00:00
Issue found with PVS-Studio:
Many places utilize post-incrementation with iterators, but it's better performance to use pre-incrementation. Resolved by changing the iter++ instances to ++iter;
This commit is contained in:
parent
ec63398042
commit
5c688260d5
8 changed files with 22 additions and 22 deletions
|
|
@ -192,13 +192,13 @@ void GFXTextureManager::cleanupPool()
|
|||
// This texture is unreferenced, so take the time
|
||||
// now to completely remove it from the pool.
|
||||
TexturePoolMap::Iterator unref = iter;
|
||||
iter++;
|
||||
++iter;
|
||||
unref->value = NULL;
|
||||
mTexturePool.erase( unref );
|
||||
continue;
|
||||
}
|
||||
|
||||
iter++;
|
||||
++iter;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue