mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-09-08 16:17:11 +02:00
Discard instances of constant StackStrF parameters. This should always be non-const if possible.
This commit is contained in:
@@ -350,7 +350,7 @@ SQInteger Connection::QueryF(HSQUIRRELVM vm)
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
LightObj Connection::EscapeString(const StackStrF & str)
|
||||
LightObj Connection::EscapeString(StackStrF & str)
|
||||
{
|
||||
// Is there even a string to escape?
|
||||
if (str.mLen <= 0)
|
||||
|
@@ -414,7 +414,7 @@ public:
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Escape unwanted characters from a given string.
|
||||
*/
|
||||
LightObj EscapeString(const StackStrF & str);
|
||||
LightObj EscapeString(StackStrF & str);
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Attempt to execute the specified query.
|
||||
|
Reference in New Issue
Block a user