Token::strValue(): added const modifier.

Correction for 241f585d34 commit.

No functional change.
This commit is contained in:
Slava Semushin 2009-09-13 15:02:23 +07:00
parent eb6b5cfce6
commit 1617abf053
2 changed files with 2 additions and 2 deletions

View File

@ -69,7 +69,7 @@ void Token::concatStr(std::string const& b)
_str.append(b.begin() + 1, b.end()); _str.append(b.begin() + 1, b.end());
} }
std::string Token::strValue() std::string Token::strValue() const
{ {
assert(_str.length() >= 2); assert(_str.length() >= 2);
assert(_str[0] == '"'); assert(_str[0] == '"');

View File

@ -272,7 +272,7 @@ public:
* 'hello' (removing the double quotes). * 'hello' (removing the double quotes).
* @return String value * @return String value
*/ */
std::string strValue(); std::string strValue() const;
private: private:
void next(Token *next) void next(Token *next)