mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Tokenizer.cpp: Rename local variable in regex matching
This commit is contained in:
parent
179527611e
commit
2075e88990
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue