Clean up.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3696 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
2e07400817
commit
3759446ddd
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user