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
|
|
@ -92,7 +92,7 @@ static FxExpression *CustomTypeCast(FxTypeCast *func, FCompileContext &ctx)
|
|||
delete func;
|
||||
return nullptr;
|
||||
}
|
||||
FxExpression *x = new FxMultiNameState(s, basex->ScriptPosition);
|
||||
FxExpression *x = new FxMultiNameState(s.GetChars(), basex->ScriptPosition);
|
||||
x = x->Resolve(ctx);
|
||||
basex = nullptr;
|
||||
delete func;
|
||||
|
|
@ -811,10 +811,10 @@ FxMultiNameState::FxMultiNameState(const char *_statestring, const FScriptPositi
|
|||
|
||||
if (scopeindex >= 0)
|
||||
{
|
||||
scopename = FName(statestring, scopeindex, false);
|
||||
scopename = FName(statestring.GetChars(), scopeindex, false);
|
||||
statestring = statestring.Right((ptrdiff_t)statestring.Len() - scopeindex - 2);
|
||||
}
|
||||
names = MakeStateNameList(statestring);
|
||||
names = MakeStateNameList(statestring.GetChars());
|
||||
names.Insert(0, scopename);
|
||||
scope = checkclass;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue