Token::strValue(): added const modifier.
Correction for 241f585d34
commit.
No functional change.
This commit is contained in:
parent
eb6b5cfce6
commit
1617abf053
|
@ -69,7 +69,7 @@ void Token::concatStr(std::string const& b)
|
|||
_str.append(b.begin() + 1, b.end());
|
||||
}
|
||||
|
||||
std::string Token::strValue()
|
||||
std::string Token::strValue() const
|
||||
{
|
||||
assert(_str.length() >= 2);
|
||||
assert(_str[0] == '"');
|
||||
|
|
|
@ -272,7 +272,7 @@ public:
|
|||
* 'hello' (removing the double quotes).
|
||||
* @return String value
|
||||
*/
|
||||
std::string strValue();
|
||||
std::string strValue() const;
|
||||
|
||||
private:
|
||||
void next(Token *next)
|
||||
|
|
Loading…
Reference in New Issue