CString -> RString

This commit is contained in:
Chris Danford
2006-01-22 01:00:06 +00:00
parent 870ed267fc
commit 7f821e8cfc
578 changed files with 3943 additions and 3946 deletions
+4 -4
View File
@@ -7,7 +7,7 @@
#include <sstream>
#include "LuaBinding.h"
ActorCommands::ActorCommands( const CString &sCommands )
ActorCommands::ActorCommands( const RString &sCommands )
{
if( sCommands.size() > 0 && sCommands[0] == '\033' )
{
@@ -34,7 +34,7 @@ ActorCommands::ActorCommands( const CString &sCommands )
FOREACH_CONST( Command, cmds.v, c )
{
const Command& cmd = (*c);
CString sName = cmd.GetName();
RString sName = cmd.GetName();
TrimLeft( sName );
TrimRight( sName );
s << "\tself:" << sName << "(";
@@ -52,7 +52,7 @@ ActorCommands::ActorCommands( const CString &sCommands )
for( unsigned i=1; i<cmd.m_vsArgs.size(); i++ )
{
CString sArg = cmd.m_vsArgs[i];
RString sArg = cmd.m_vsArgs[i];
// "+200" -> "200"
if( sArg[0] == '+' )
@@ -95,7 +95,7 @@ void ActorCommands::Register()
{
Lua *L = LUA->Get();
CString sError;
RString sError;
if( !LuaHelpers::RunScript( L, m_sLuaFunction, "in", sError, 1 ) )
{
FAIL_M( ssprintf("Compiling \"%s\": %s", m_sLuaFunction.c_str(), sError.c_str()) );