added even more explicit GetChars() calls.

This commit is contained in:
Christoph Oelckers 2023-10-03 15:55:08 +02:00
commit 48ba63c022
42 changed files with 230 additions and 214 deletions

View file

@ -650,7 +650,7 @@ void ZCCDoomCompiler::ProcessDefaultProperty(PClassActor *cls, ZCC_PropertyStmt
}
FPropertyInfo *property = FindProperty(propname);
FPropertyInfo *property = FindProperty(propname.GetChars());
if (property != nullptr && property->category != CAT_INFO)
{
@ -987,7 +987,7 @@ void ZCCDoomCompiler::CompileStates()
{
auto sl = static_cast<ZCC_StateLabel *>(st);
statename = FName(sl->Label).GetChars();
statedef.AddStateLabel(statename);
statedef.AddStateLabel(statename.GetChars());
break;
}
case AST_StateLine:
@ -1046,7 +1046,7 @@ void ZCCDoomCompiler::CompileStates()
auto l = sl->Lights;
do
{
AddStateLight(&state, StringConstFromNode(l, c->Type()));
AddStateLight(&state, StringConstFromNode(l, c->Type()).GetChars());
l = static_cast<decltype(l)>(l->SiblingNext);
} while (l != sl->Lights);
}
@ -1097,7 +1097,7 @@ void ZCCDoomCompiler::CompileStates()
statename.AppendFormat("+%d", offset);
}
}
if (!statedef.SetGotoLabel(statename))
if (!statedef.SetGotoLabel(statename.GetChars()))
{
Error(sg, "GOTO before first state");
}