Remove implicit conversion operator from RString to const char*
This is required for the RString to std::string migration. Mostly automated from https://github.com/aeubanks/rewriter/blob/main/c_str.cc, with some manual intervention required for fixing up `a + b.c_str()` to `(a + b).c_str()`. Added some overloads for some common global functions like sm_crash to reduce the number of changes required here.
This commit is contained in:
+2
-2
@@ -380,7 +380,7 @@ void Sprite::LoadFromCached( const RString &sDir, const RString &sPath )
|
||||
{
|
||||
if( sPath.empty() )
|
||||
{
|
||||
Load( THEME->GetPathG("Common","fallback %s", sDir) );
|
||||
Load( THEME->GetPathG("Common","fallback %s", sDir.c_str()) );
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -394,7 +394,7 @@ void Sprite::LoadFromCached( const RString &sDir, const RString &sPath )
|
||||
else if( IsAFile(sPath) )
|
||||
Load( sPath );
|
||||
else
|
||||
Load( THEME->GetPathG("Common","fallback %s", sDir) );
|
||||
Load( THEME->GetPathG("Common","fallback %s", sDir.c_str()) );
|
||||
}
|
||||
|
||||
void Sprite::LoadStatesFromTexture()
|
||||
|
||||
Reference in New Issue
Block a user