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:
Christoph Oelckers 2023-10-03 14:27:13 +02:00
commit 1717ff47b2
28 changed files with 92 additions and 97 deletions

View file

@ -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
{

View file

@ -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());
}
}