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

@ -639,7 +639,7 @@ bool cRoot::FindAndDoWithPlayer(const AString & a_PlayerName, cPlayerListCallbac
bool cRoot::DoWithPlayerByUUID(const AString & a_PlayerUUID, cPlayerListCallback & a_Callback)
{
for (WorldMap::iterator itr = m_WorldsByName.begin(); itr != m_WorldsByName.end();itr++)
for (WorldMap::iterator itr = m_WorldsByName.begin(); itr != m_WorldsByName.end(); ++itr)
{
if (itr->second->DoWithPlayerByUUID(a_PlayerUUID, a_Callback))
{

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;