Fixed string usage issues found by UE_NODISCARD

#rb trivial
#rnx

[CL 15161911 by Devin Doucette in ue5-main branch]
This commit is contained in:
Devin Doucette
2021-01-21 23:29:04 -04:00
parent 27b3ae79e3
commit 0cc787955d

View File

@@ -90,7 +90,7 @@ FString FScriptCodeGeneratorBase::GetPropertyTypeCPP(FProperty* Property, uint32
int32 FirstSpaceIndex = PropertyType.Find(TEXT(" "), ESearchCase::CaseSensitive);
PropertyType = TEXT("TEnumAsByte<") + PropertyType.Mid(FirstSpaceIndex + 1);
}
else if (PropertyType.StartsWith(TSubclassOfDecl), ESearchCase::CaseSensitive)
else if (PropertyType.StartsWith(TSubclassOfDecl, ESearchCase::CaseSensitive))
{
int32 FirstSpaceIndex = PropertyType.Find(TEXT(" "), ESearchCase::CaseSensitive);
PropertyType = TEXT("TSubclassOf<") + PropertyType.Mid(FirstSpaceIndex + 1);