simplify two statements with selectToken()

This commit is contained in:
Lu Guanqun 2015-02-08 19:22:45 +08:00
parent 724ee76900
commit 1a1975bf7a

View File

@ -458,10 +458,7 @@ void Scanner::scanToken()
// - -- -=
advance();
if (m_char == '-')
{
advance();
token = Token::DEC;
}
token = selectToken(Token::DEC);
else if (m_char == '=')
token = selectToken(Token::ASSIGN_SUB);
else