diff options
author | Lefteris Karapetsas <lefteris@refu.co> | 2014-12-01 08:05:55 +0800 |
---|---|---|
committer | Lefteris Karapetsas <lefteris@refu.co> | 2014-12-01 08:05:55 +0800 |
commit | 4b845073105bc76793a72a092630fc3bc5077882 (patch) | |
tree | ec2560fb06893a849eec7580c885911a46d152bd /Scanner.cpp | |
parent | 21fdd84c09edd837fde1299c8e4f0b9545a8c1fa (diff) | |
download | dexon-solidity-4b845073105bc76793a72a092630fc3bc5077882.tar.gz dexon-solidity-4b845073105bc76793a72a092630fc3bc5077882.tar.zst dexon-solidity-4b845073105bc76793a72a092630fc3bc5077882.zip |
simplifying Scanner::reset()
Diffstat (limited to 'Scanner.cpp')
-rw-r--r-- | Scanner.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Scanner.cpp b/Scanner.cpp index 6ef8a6c7..4ffc2223 100644 --- a/Scanner.cpp +++ b/Scanner.cpp @@ -150,9 +150,7 @@ void Scanner::reset(CharStream const& _source) skipWhitespace(); scanToken(); - m_currentToken = m_nextToken; - m_skippedComment = m_nextSkippedComment; - scanToken(); + next(); } |