aboutsummaryrefslogtreecommitdiffstats
path: root/Scanner.cpp
diff options
context:
space:
mode:
authorLu Guanqun <guanqun.lu@gmail.com>2015-02-08 19:22:45 +0800
committerLu Guanqun <guanqun.lu@gmail.com>2015-02-08 19:57:40 +0800
commit1a1975bf7a47ea6b7d3db631d661f15e76ddc1b2 (patch)
tree342fc35f4fca11367bae8fa27a3c180a3add9ed9 /Scanner.cpp
parent724ee769005095a123704962cd56b97765278871 (diff)
downloaddexon-solidity-1a1975bf7a47ea6b7d3db631d661f15e76ddc1b2.tar.gz
dexon-solidity-1a1975bf7a47ea6b7d3db631d661f15e76ddc1b2.tar.zst
dexon-solidity-1a1975bf7a47ea6b7d3db631d661f15e76ddc1b2.zip
simplify two statements with selectToken()
Diffstat (limited to 'Scanner.cpp')
-rw-r--r--Scanner.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/Scanner.cpp b/Scanner.cpp
index b283ca10..6a8ecd9d 100644
--- a/Scanner.cpp
+++ b/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