Fixed CppCheck: (performance) Prefer prefix ++/-- operators for non-primitive types.
This commit is contained in:
parent
3dc994f9dc
commit
41f30edcf7
@ -639,7 +639,7 @@ bool cRoot::FindAndDoWithPlayer(const AString & a_PlayerName, cPlayerListCallbac
|
|||||||
|
|
||||||
bool cRoot::DoWithPlayerByUUID(const AString & a_PlayerUUID, cPlayerListCallback & a_Callback)
|
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))
|
if (itr->second->DoWithPlayerByUUID(a_PlayerUUID, a_Callback))
|
||||||
{
|
{
|
||||||
|
@ -132,7 +132,7 @@ void cSetChunkData::RemoveInvalidBlockEntities(void)
|
|||||||
ItemTypeToString(WorldBlockType).c_str(), WorldBlockType
|
ItemTypeToString(WorldBlockType).c_str(), WorldBlockType
|
||||||
);
|
);
|
||||||
cBlockEntityList::iterator itr2 = itr;
|
cBlockEntityList::iterator itr2 = itr;
|
||||||
itr2++;
|
++itr2;
|
||||||
delete *itr;
|
delete *itr;
|
||||||
m_BlockEntities.erase(itr);
|
m_BlockEntities.erase(itr);
|
||||||
itr = itr2;
|
itr = itr2;
|
||||||
|
Loading…
Reference in New Issue
Block a user