1
0

Fixed CppCheck: (performance) Prefer prefix ++/-- operators for non-primitive types.

This commit is contained in:
Kirill Kirilenko
2015-01-17 16:00:12 +03:00
parent 3dc994f9dc
commit 41f30edcf7
2 changed files with 2 additions and 2 deletions

View File

@@ -132,7 +132,7 @@ void cSetChunkData::RemoveInvalidBlockEntities(void)
ItemTypeToString(WorldBlockType).c_str(), WorldBlockType
);
cBlockEntityList::iterator itr2 = itr;
itr2++;
++itr2;
delete *itr;
m_BlockEntities.erase(itr);
itr = itr2;