changed some variables to const

This commit is contained in:
TranRed 2019-05-03 08:58:54 +02:00 committed by pajlada
parent 7ad6db550d
commit cff1aa0959

View file

@ -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,