Change some RString methods to free functions
These ones aren't a std::string method. Doing this helps the RString to std::string migration.
This commit is contained in:
+2
-2
@@ -925,7 +925,7 @@ void LuaHelpers::ParseCommandList( Lua *L, const RString &sCommands, const RStri
|
||||
{
|
||||
RString sCmdName = cmd.GetName();
|
||||
if( bLegacy )
|
||||
sCmdName.MakeLower();
|
||||
MakeLower(sCmdName);
|
||||
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
|
||||
{
|
||||
sArg.Replace( "'", "\\'" ); // escape quote
|
||||
Replace(sArg, "'", "\\'"); // escape quote
|
||||
s << "'" << sArg << "'";
|
||||
}
|
||||
else if( sArg[0] == '#' ) // HTML color
|
||||
|
||||
Reference in New Issue
Block a user