diff options
author | Christian <c@ethdev.com> | 2014-10-30 02:41:07 +0800 |
---|---|---|
committer | Christian <c@ethdev.com> | 2014-10-30 02:41:07 +0800 |
commit | 5d287e7ea2e1847bb5fc4c67c520248c7060c4c6 (patch) | |
tree | d580aa8d21a94c816760f775f92187a91bd3673d /Scanner.h | |
parent | 62822ffd92cfef4b76cea44783c67278950a7e79 (diff) | |
download | dexon-solidity-5d287e7ea2e1847bb5fc4c67c520248c7060c4c6.tar.gz dexon-solidity-5d287e7ea2e1847bb5fc4c67c520248c7060c4c6.tar.zst dexon-solidity-5d287e7ea2e1847bb5fc4c67c520248c7060c4c6.zip |
Further const placement changes.
Diffstat (limited to 'Scanner.h')
-rw-r--r-- | Scanner.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -124,7 +124,7 @@ public: /// Returns the current token Token::Value getCurrentToken() { return m_current_token.token; } Location getCurrentLocation() const { return m_current_token.location; } - const std::string& getCurrentLiteral() const { return m_current_token.literal; } + std::string const& getCurrentLiteral() const { return m_current_token.literal; } ///@} ///@{ @@ -133,7 +133,7 @@ public: /// Returns the next token without advancing input. Token::Value peekNextToken() const { return m_next_token.token; } Location peekLocation() const { return m_next_token.location; } - const std::string& peekLiteral() const { return m_next_token.literal; } + std::string const& peekLiteral() const { return m_next_token.literal; } ///@} ///@{ |