aboutsummaryrefslogtreecommitdiffstats
path: root/Scanner.cpp
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2014-12-01 08:05:55 +0800
committerLefteris Karapetsas <lefteris@refu.co>2014-12-01 08:05:55 +0800
commit4b845073105bc76793a72a092630fc3bc5077882 (patch)
treeec2560fb06893a849eec7580c885911a46d152bd /Scanner.cpp
parent21fdd84c09edd837fde1299c8e4f0b9545a8c1fa (diff)
downloaddexon-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.cpp4
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();
}