1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-06-19 16:47:14 +02:00

Discard instances of constant StackStrF parameters. This should always be non-const if possible.

This commit is contained in:
Sandu Liviu Catalin
2019-02-17 17:23:59 +02:00
parent baee2d5c33
commit 600c21d45f
68 changed files with 250 additions and 227 deletions

View File

@ -57,7 +57,7 @@ const String & CVehicle::GetTag() const
}
// ------------------------------------------------------------------------------------------------
void CVehicle::SetTag(const StackStrF & tag)
void CVehicle::SetTag(StackStrF & tag)
{
if (tag.mLen > 0)
{
@ -70,7 +70,7 @@ void CVehicle::SetTag(const StackStrF & tag)
}
// ------------------------------------------------------------------------------------------------
CVehicle & CVehicle::ApplyTag(const StackStrF & tag)
CVehicle & CVehicle::ApplyTag(StackStrF & tag)
{
SetTag(tag);
return *this;