Use FString::Back() when possible
Changed usages of str[str.Len() - 1] to str.Back()
This commit is contained in:
parent
d526ddf7ae
commit
cb982ec313
5 changed files with 7 additions and 7 deletions
|
|
@ -48,7 +48,7 @@ static FString BuildPath(const FString &base, const char *name)
|
|||
if (base.IsNotEmpty())
|
||||
{
|
||||
current = base;
|
||||
if (current[current.Len() - 1] != '/') current += '/';
|
||||
if (current.Back() != '/') current += '/';
|
||||
}
|
||||
current += name;
|
||||
return current;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue