Clean up.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3696 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Michael Pfeiffer 2003-06-27 17:19:46 +00:00
parent 2e07400817
commit 3759446ddd

View File

@ -136,11 +136,8 @@ bool Scanner::ReadFloat(float *value)
bool Scanner::NextChar(char ch) {
SkipSpaces();
int c = GetCh();
if (c == ch) {
return true;
} else {
UngetCh(c);
return false;
}
bool match = c == ch;
if (!match) UngetCh(c);
return match;
}