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
|
|
@ -405,7 +405,7 @@ void FIWadManager::CollectSearchPaths()
|
|||
for (auto &str : mSearchPaths)
|
||||
{
|
||||
FixPathSeperator(str);
|
||||
if (str[str.Len() - 1] == '/') str.Truncate(str.Len() - 1);
|
||||
if (str.Back() == '/') str.Truncate(str.Len() - 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue