Tokenizer.cpp: Rename local variable in regex matching

This commit is contained in:
Rasmus Karlsson 2021-11-28 12:38:52 +01:00 committed by pajlada
parent 179527611e
commit 2075e88990

View file

@ -8,9 +8,9 @@ Tokenizer::Tokenizer(const QString &text)
QRegularExpressionMatchIterator i = tokenRegex.globalMatch(text);
while (i.hasNext())
{
auto text = i.next().captured();
this->tokens_ << text;
this->tokenTypes_ << this->tokenize(text);
auto capturedText = i.next().captured();
this->tokens_ << capturedText;
this->tokenTypes_ << this->tokenize(capturedText);
}
}