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

Initial preparations for CURL and Discord integration.

This commit is contained in:
Sandu Liviu Catalin
2021-01-27 07:27:48 +02:00
parent 8257eb61d6
commit 95705e87c8
1751 changed files with 440547 additions and 854 deletions

View File

@@ -193,7 +193,7 @@ static SQInteger SqNanL(HSQUIRRELVM vm)
{
return sq_throwerror(vm, e.what());
}
catch (const std::exception e)
catch (const std::exception & e)
{
return sq_throwerror(vm, e.what());
}
@@ -698,7 +698,7 @@ static SQInteger SqRoundL(HSQUIRRELVM vm)
{
return sq_throwerror(vm, e.what());
}
catch (const std::exception e)
catch (const std::exception & e)
{
return sq_throwerror(vm, e.what());
}

View File

@@ -363,7 +363,7 @@ static String RandomString(Int32 len)
// Request the random fill
GetRandomString(str, len);
// Return ownership of the string
return std::move(str);
return str;
}
// ------------------------------------------------------------------------------------------------
@@ -377,7 +377,7 @@ static String RandomString(Int32 len, SQChar n)
// Request the random fill
GetRandomString(str, len, n);
// Return ownership of the string
return std::move(str);
return str;
}
// ------------------------------------------------------------------------------------------------
@@ -391,7 +391,7 @@ static String RandomString(Int32 len, SQChar m, SQChar n)
// Request the random fill
GetRandomString(str, len, m, n);
// Return ownership of the string
return std::move(str);
return str;
}
// ------------------------------------------------------------------------------------------------