From 5d287e7ea2e1847bb5fc4c67c520248c7060c4c6 Mon Sep 17 00:00:00 2001 From: Christian Date: Wed, 29 Oct 2014 19:41:07 +0100 Subject: Further const placement changes. --- Scanner.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Scanner.h') diff --git a/Scanner.h b/Scanner.h index fbaba9ed..c08d3219 100644 --- a/Scanner.h +++ b/Scanner.h @@ -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; } ///@} ///@{ -- cgit