Use FString::Back() when possible

Changed usages of str[str.Len() - 1] to str.Back()
This commit is contained in:
alexey.lysiuk 2017-10-23 11:55:20 +03:00
commit cb982ec313
5 changed files with 7 additions and 7 deletions

View file

@ -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);
}
}