Change nextInterpolatedString return value

This commit is contained in:
Kampfkarren 2022-07-27 23:43:25 -07:00
parent 54734826e7
commit dbf5064449
2 changed files with 2 additions and 2 deletions

View file

@ -173,7 +173,7 @@ public:
void setSkipComments(bool skip);
void setReadNames(bool read);
const Lexeme nextInterpolatedString();
const Lexeme& nextInterpolatedString();
const Location& previousLocation() const
{

View file

@ -587,7 +587,7 @@ Lexeme Lexer::readQuotedString()
return Lexeme(Location(start, position()), Lexeme::QuotedString, &buffer[startOffset], offset - startOffset - 1);
}
const Lexeme Lexer::nextInterpolatedString()
const Lexeme& Lexer::nextInterpolatedString()
{
Position start = position();
unsigned int startOffset = offset;