diff options
author | Strangerke | 2014-03-02 11:40:05 +0100 |
---|---|---|
committer | Strangerke | 2014-03-02 11:40:05 +0100 |
commit | fd995fa44914e393fe5dc725928af2a297846513 (patch) | |
tree | 17b99350b0340b5fb9b8e8fa49ab9bdcc762aa5d /engines/toltecs/palette.cpp | |
parent | ae258cb350797f41272fdc1878d8cb0d3bacef05 (diff) | |
download | scummvm-rg350-fd995fa44914e393fe5dc725928af2a297846513.tar.gz scummvm-rg350-fd995fa44914e393fe5dc725928af2a297846513.tar.bz2 scummvm-rg350-fd995fa44914e393fe5dc725928af2a297846513.zip |
TOLTECS: Apply CppCheck performance recommendations
Diffstat (limited to 'engines/toltecs/palette.cpp')
-rw-r--r-- | engines/toltecs/palette.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/toltecs/palette.cpp b/engines/toltecs/palette.cpp index 5a2c705c5c..ab66e60c9d 100644 --- a/engines/toltecs/palette.cpp +++ b/engines/toltecs/palette.cpp @@ -120,7 +120,7 @@ uint16 Palette::findFragment(int16 id) { debug(0, "Palette::findFragment(%d)", id); uint16 result = 0; - for (PaletteFragmentArray::iterator iter = _fragments.begin(); iter != _fragments.end(); iter++) { + for (PaletteFragmentArray::iterator iter = _fragments.begin(); iter != _fragments.end(); ++iter) { PaletteFragment fragment = *iter; if (fragment.id == id) { result = (fragment.count << 8) | fragment.index; @@ -193,7 +193,7 @@ void Palette::saveState(Common::WriteStream *out) { uint16 fragmentCount = _fragments.size(); out->writeUint16LE(fragmentCount); - for (PaletteFragmentArray::iterator iter = _fragments.begin(); iter != _fragments.end(); iter++) { + for (PaletteFragmentArray::iterator iter = _fragments.begin(); iter != _fragments.end(); ++iter) { PaletteFragment fragment = *iter; out->writeUint16LE(fragment.id); out->writeByte(fragment.index); |