Browse Source

simplify two statements with selectToken()

cl-refactor
Lu Guanqun 10 years ago
parent
commit
833164b742
  1. 5
      libsolidity/Scanner.cpp

5
libsolidity/Scanner.cpp

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

Loading…
Cancel
Save