mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-06-16 07:07:13 +02:00
Update all existing code to always receive StackStrF as a const reference.
This commit is contained in:
@ -64,7 +64,7 @@ void CBlip::SetTag(const StackStrF & tag)
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
CBlip & CBlip::ApplyTag(StackStrF & tag)
|
||||
CBlip & CBlip::ApplyTag(const StackStrF & tag)
|
||||
{
|
||||
SetTag(tag);
|
||||
return *this;
|
||||
|
@ -124,7 +124,7 @@ public:
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Modify the associated user tag.
|
||||
*/
|
||||
CBlip & ApplyTag(StackStrF & tag);
|
||||
CBlip & ApplyTag(const StackStrF & tag);
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the associated user data.
|
||||
|
@ -77,7 +77,7 @@ void CCheckpoint::SetTag(const StackStrF & tag)
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
CCheckpoint & CCheckpoint::ApplyTag(StackStrF & tag)
|
||||
CCheckpoint & CCheckpoint::ApplyTag(const StackStrF & tag)
|
||||
{
|
||||
SetTag(tag);
|
||||
return *this;
|
||||
|
@ -145,7 +145,7 @@ public:
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Modify the associated user tag.
|
||||
*/
|
||||
CCheckpoint & ApplyTag(StackStrF & tag);
|
||||
CCheckpoint & ApplyTag(const StackStrF & tag);
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the associated user data.
|
||||
|
@ -64,7 +64,7 @@ void CKeybind::SetTag(const StackStrF & tag)
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
CKeybind & CKeybind::ApplyTag(StackStrF & tag)
|
||||
CKeybind & CKeybind::ApplyTag(const StackStrF & tag)
|
||||
{
|
||||
SetTag(tag);
|
||||
return *this;
|
||||
|
@ -124,7 +124,7 @@ public:
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Modify the associated user tag.
|
||||
*/
|
||||
CKeybind & ApplyTag(StackStrF & tag);
|
||||
CKeybind & ApplyTag(const StackStrF & tag);
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the associated user data.
|
||||
|
@ -77,7 +77,7 @@ void CObject::SetTag(const StackStrF & tag)
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
CObject & CObject::ApplyTag(StackStrF & tag)
|
||||
CObject & CObject::ApplyTag(const StackStrF & tag)
|
||||
{
|
||||
SetTag(tag);
|
||||
return *this;
|
||||
|
@ -161,7 +161,7 @@ public:
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Modify the associated user tag.
|
||||
*/
|
||||
CObject & ApplyTag(StackStrF & tag);
|
||||
CObject & ApplyTag(const StackStrF & tag);
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the associated user data.
|
||||
|
@ -69,7 +69,7 @@ void CPickup::SetTag(const StackStrF & tag)
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
CPickup & CPickup::ApplyTag(StackStrF & tag)
|
||||
CPickup & CPickup::ApplyTag(const StackStrF & tag)
|
||||
{
|
||||
SetTag(tag);
|
||||
return *this;
|
||||
|
@ -143,7 +143,7 @@ public:
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Modify the associated user tag.
|
||||
*/
|
||||
CPickup & ApplyTag(StackStrF & tag);
|
||||
CPickup & ApplyTag(const StackStrF & tag);
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the associated user data.
|
||||
|
@ -99,7 +99,7 @@ void CPlayer::SetTag(const StackStrF & tag)
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
CPlayer & CPlayer::ApplyTag(StackStrF & tag)
|
||||
CPlayer & CPlayer::ApplyTag(const StackStrF & tag)
|
||||
{
|
||||
SetTag(tag);
|
||||
return *this;
|
||||
@ -331,7 +331,7 @@ CSStr CPlayer::GetName() const
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPlayer::SetName(StackStrF & name) const
|
||||
void CPlayer::SetName(const StackStrF & name) const
|
||||
{
|
||||
// Validate the managed identifier
|
||||
Validate();
|
||||
@ -1469,7 +1469,7 @@ const String & CPlayer::GetMessagePrefix(Uint32 index) const
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPlayer::SetMessagePrefix(Uint32 index, StackStrF & prefix)
|
||||
void CPlayer::SetMessagePrefix(Uint32 index, const StackStrF & prefix)
|
||||
{
|
||||
// Perform a range check on the specified prefix index
|
||||
if (index >= SQMOD_PLAYER_MSG_PREFIXES)
|
||||
@ -1646,7 +1646,7 @@ void CPlayer::StreamFloat(SQFloat val)
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPlayer::StreamString(StackStrF & val)
|
||||
void CPlayer::StreamString(const StackStrF & val)
|
||||
{
|
||||
// Validate the managed identifier
|
||||
Validate();
|
||||
@ -1660,7 +1660,7 @@ void CPlayer::StreamString(StackStrF & val)
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void CPlayer::StreamRawString(StackStrF & val)
|
||||
void CPlayer::StreamRawString(const StackStrF & val)
|
||||
{
|
||||
// Validate the managed identifier
|
||||
Validate();
|
||||
|
@ -212,7 +212,7 @@ public:
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Modify the associated user tag.
|
||||
*/
|
||||
CPlayer & ApplyTag(StackStrF & tag);
|
||||
CPlayer & ApplyTag(const StackStrF & tag);
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the associated user data.
|
||||
@ -302,7 +302,7 @@ public:
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Modify the nick name of the managed player entity.
|
||||
*/
|
||||
void SetName(StackStrF & name) const;
|
||||
void SetName(const StackStrF & name) const;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the current state of the managed player entity.
|
||||
@ -783,7 +783,7 @@ public:
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Modify the message prefix at the specified index for the managed player entity.
|
||||
*/
|
||||
void SetMessagePrefix(Uint32 index, StackStrF & prefix);
|
||||
void SetMessagePrefix(Uint32 index, const StackStrF & prefix);
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the amount of tracked position changes for the managed player entity.
|
||||
@ -878,12 +878,12 @@ public:
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Write a string to the stream buffer.
|
||||
*/
|
||||
void StreamString(StackStrF & val);
|
||||
void StreamString(const StackStrF & val);
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Write a raw string to the stream buffer.
|
||||
*/
|
||||
void StreamRawString(StackStrF & val);
|
||||
void StreamRawString(const StackStrF & val);
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Send the data in the stream buffer to the client.
|
||||
|
@ -73,7 +73,7 @@ void CVehicle::SetTag(const StackStrF & tag)
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
CVehicle & CVehicle::ApplyTag(StackStrF & tag)
|
||||
CVehicle & CVehicle::ApplyTag(const StackStrF & tag)
|
||||
{
|
||||
SetTag(tag);
|
||||
return *this;
|
||||
|
@ -149,7 +149,7 @@ public:
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Modify the associated user tag.
|
||||
*/
|
||||
CVehicle & ApplyTag(StackStrF & tag);
|
||||
CVehicle & ApplyTag(const StackStrF & tag);
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the associated user data.
|
||||
|
Reference in New Issue
Block a user