mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-07-09 10:27:10 +02:00
Discard instances of constant StackStrF parameters. This should always be non-const if possible.
This commit is contained in:
include/sqrat
modules
mysql
sqlite
source
Base
AABB.cppAABB.hppCircle.cppCircle.hppColor3.cppColor3.hppColor4.cppColor4.hppQuaternion.cppQuaternion.hppShared.cppShared.hppSphere.cppSphere.hppVector2.cppVector2.hppVector2i.cppVector2i.hppVector3.cppVector3.hppVector4.cppVector4.hpp
Core.cppEntity
Blip.cppBlip.hppCheckpoint.cppCheckpoint.hppKeybind.cppKeybind.hppObject.cppObject.hppPickup.cppPickup.hppPlayer.cppPlayer.hppVehicle.cppVehicle.hpp
Library
Main.cppMisc
@ -1888,6 +1888,16 @@ struct StackStrF
|
||||
CacheHash();
|
||||
return GetHash();
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
/// Provide a dummy non constant instance when calling functions that can work with placeholders.
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
static StackStrF & Dummy()
|
||||
{
|
||||
static StackStrF o;
|
||||
o.Release();
|
||||
return o;
|
||||
}
|
||||
};
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
@ -2122,7 +2132,7 @@ template<class T> struct is_reference<T&>
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
/// Fast integer to string implementation to avoid using itoa. See https://github.com/jeaiii/itoa
|
||||
/// Fast integer to string implementation to avoid using itoa. See https://github.com/jeaiii/itoa
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user