1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-06-17 07:37:13 +02:00

Const cleanup.

This commit is contained in:
Sandu Liviu Catalin
2021-02-05 16:03:04 +02:00
parent 076d778e50
commit a6a9aa88b2
5 changed files with 27 additions and 27 deletions

View File

@ -162,7 +162,7 @@ void PvClass::AssignPrivilege(SQInteger id, SQInteger value)
DoChanged(id, r.Cast< bool >(), value);
}
}
// Either waiy, we are setting this value
// Either way, we are setting this value
mPrivileges[id] = value;
}
@ -391,7 +391,7 @@ bool PvClass::HaveUnitWithTag(StackStrF & tag)
}
// ------------------------------------------------------------------------------------------------
void PvClass::EachEntryID(Object & ctx, Function & func)
void PvClass::EachEntryID(Object & ctx, Function & func) const
{
// In order to be safe from modifications while iterating, create a copy
PvStatusList list(mPrivileges);
@ -403,7 +403,7 @@ void PvClass::EachEntryID(Object & ctx, Function & func)
}
// ------------------------------------------------------------------------------------------------
void PvClass::EachUnitID(Object & ctx, Function & func)
void PvClass::EachUnitID(Object & ctx, Function & func) const
{
// In order to be safe from modifications while iterating, create a copy
PvUnit::List list(mUnits);