Tokenizer.cpp: Rename local variable in regex matching
This commit is contained in:
@@ -8,9 +8,9 @@ Tokenizer::Tokenizer(const QString &text)
|
|||||||
QRegularExpressionMatchIterator i = tokenRegex.globalMatch(text);
|
QRegularExpressionMatchIterator i = tokenRegex.globalMatch(text);
|
||||||
while (i.hasNext())
|
while (i.hasNext())
|
||||||
{
|
{
|
||||||
auto text = i.next().captured();
|
auto capturedText = i.next().captured();
|
||||||
this->tokens_ << text;
|
this->tokens_ << capturedText;
|
||||||
this->tokenTypes_ << this->tokenize(text);
|
this->tokenTypes_ << this->tokenize(capturedText);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user