mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
changed some variables to const
This commit is contained in:
parent
7ad6db550d
commit
cff1aa0959
1 changed files with 2 additions and 2 deletions
|
@ -98,10 +98,10 @@ MessageBuilder::MessageBuilder(SystemMessageTag, const QString &text)
|
|||
|
||||
// check system message for links
|
||||
// (e.g. needed for sub ticket message in sub only mode)
|
||||
QStringList textFragments = text.split(QRegularExpression("\\s"));
|
||||
const QStringList textFragments = text.split(QRegularExpression("\\s"));
|
||||
for (const auto &word : textFragments)
|
||||
{
|
||||
auto linkString = this->matchLink(word);
|
||||
const auto linkString = this->matchLink(word);
|
||||
if (linkString.isEmpty())
|
||||
{
|
||||
this->emplace<TextElement>(word, MessageElementFlag::Text,
|
||||
|
|
Loading…
Reference in a new issue