From 833164b742738fd9fcacb6c48b141eeab50a584c Mon Sep 17 00:00:00 2001 From: Lu Guanqun Date: Sun, 8 Feb 2015 19:22:45 +0800 Subject: [PATCH] simplify two statements with selectToken() --- libsolidity/Scanner.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/libsolidity/Scanner.cpp b/libsolidity/Scanner.cpp index b283ca10e..6a8ecd9dc 100644 --- a/libsolidity/Scanner.cpp +++ b/libsolidity/Scanner.cpp @@ -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