Revert "Change some RString methods to free functions"

This commit is contained in:
teejusb
2025-06-22 23:31:56 -07:00
parent dfe8b29ef5
commit 53dcbed80d
110 changed files with 619 additions and 588 deletions
+2 -2
View File
@@ -925,7 +925,7 @@ void LuaHelpers::ParseCommandList( Lua *L, const RString &sCommands, const RStri
{
RString sCmdName = cmd.GetName();
if( bLegacy )
MakeLower(sCmdName);
sCmdName.MakeLower();
s << "\tself:" << sCmdName << "(";
bool bFirstParamIsString = bLegacy && (
@@ -950,7 +950,7 @@ void LuaHelpers::ParseCommandList( Lua *L, const RString &sCommands, const RStri
if( i==1 && bFirstParamIsString ) // string literal, legacy only
{
Replace(sArg, "'", "\\'"); // escape quote
sArg.Replace( "'", "\\'" ); // escape quote
s << "'" << sArg << "'";
}
else if( sArg[0] == '#' ) // HTML color