Commit e0d890cc authored by Perry Kundert's avatar Perry Kundert

Corrected unnnecessary const restriction on returned std::string

parent 97a38880
......@@ -2656,9 +2656,9 @@ scan_number_done:
int get()
{
++chars_read;
int c = current = ia->get_character();
token_string.push_back(static_cast<char>(c));
return c;
current = ia->get_character();
token_string.push_back(static_cast<char>(current));
return current;
}
/// unget current character (return it again on next get)
......@@ -2703,7 +2703,7 @@ scan_number_done:
}
/// return string value
const std::string get_string()
std::string get_string()
{
return std::move( yytext );
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment