add GetChars() accessors to many FString uses where const char* is wanted.
By no means complete, it's just a start to get rid of that automatic type conversion operator.
This commit is contained in:
parent
a3eb1ec1fd
commit
1717ff47b2
28 changed files with 92 additions and 97 deletions
|
|
@ -515,7 +515,7 @@ CCMD (testfade)
|
|||
{
|
||||
if ( !(colorstring = V_GetColorStringByName (argv[1])).IsEmpty() )
|
||||
{
|
||||
color = V_GetColorFromString (colorstring);
|
||||
color = V_GetColorFromString (colorstring.GetChars());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -549,7 +549,7 @@ CCMD (testcolor)
|
|||
{
|
||||
if ( !(colorstring = V_GetColorStringByName (argv[1])).IsEmpty() )
|
||||
{
|
||||
color = V_GetColorFromString (colorstring);
|
||||
color = V_GetColorFromString (colorstring.GetChars());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
|
|
@ -273,7 +273,7 @@ void FSoftwareRenderer::SetColormap(FLevelLocals *Level)
|
|||
NormalLight.ChangeFade(Level->fadeto);
|
||||
if (Level->fadeto == 0)
|
||||
{
|
||||
SetDefaultColormap(Level->info->FadeTable);
|
||||
SetDefaultColormap(Level->info->FadeTable.GetChars());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue