- Turned on warning level 4 just to see what it would produce: a lot of

warnings. At first, I was going to try and clean them all up. Then I decided
  that was a worthless cause and went about just acting on the ones that
  might actually be helpful:
   C4189 (local variable is initialized but not referenced)
   C4702 (unreachable code)
   C4512 (assignment operator could not be generated)


SVN r420 (trunk)
This commit is contained in:
Randy Heit 2006-12-21 04:34:43 +00:00
commit e1bd63e876
47 changed files with 131 additions and 128 deletions

View file

@ -478,7 +478,7 @@ void FString::ToUpper ()
size_t max = Len();
for (size_t i = 0; i < max; ++i)
{
Chars[i] = toupper(Chars[i]);
Chars[i] = (char)toupper(Chars[i]);
}
UnlockBuffer();
}
@ -489,7 +489,7 @@ void FString::ToLower ()
size_t max = Len();
for (size_t i = 0; i < max; ++i)
{
Chars[i] = tolower(Chars[i]);
Chars[i] = (char)tolower(Chars[i]);
}
UnlockBuffer();
}
@ -502,11 +502,11 @@ void FString::SwapCase ()
{
if (isupper(Chars[i]))
{
Chars[i] = tolower(Chars[i]);
Chars[i] = (char)tolower(Chars[i]);
}
else
{
Chars[i] = toupper(Chars[i]);
Chars[i] = (char)toupper(Chars[i]);
}
}
UnlockBuffer();