Fix for ranged-for string iteration returning the null terminator.

Redundant (now) test removed from FUnrealSourceFile::GetFileId.
PLATFORM_COMPILER_HAS_RANGED_FOR_LOOP macro removed.

#codereview robert.manuszewski,leigh.swift

[CL 2468804 by Steve Robb in Main branch]
This commit is contained in:
Steve Robb
2015-03-04 10:45:18 -05:00
parent f0c2022f2d
commit 07e6f6504c
7 changed files with 3 additions and 35 deletions
@@ -21,11 +21,7 @@ FString FUnrealSourceFile::GetFileId() const
StdFilename = StdFilename.Mid(9);
for (auto Char : StdFilename)
{
if (Char == 0)
{
break;
}
else if (FChar::IsAlnum(Char))
if (FChar::IsAlnum(Char))
{
Out.AppendChar(Char);
}