changed some variables to const
This commit is contained in:
@@ -98,10 +98,10 @@ MessageBuilder::MessageBuilder(SystemMessageTag, const QString &text)
|
|||||||
|
|
||||||
// check system message for links
|
// check system message for links
|
||||||
// (e.g. needed for sub ticket message in sub only mode)
|
// (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)
|
for (const auto &word : textFragments)
|
||||||
{
|
{
|
||||||
auto linkString = this->matchLink(word);
|
const auto linkString = this->matchLink(word);
|
||||||
if (linkString.isEmpty())
|
if (linkString.isEmpty())
|
||||||
{
|
{
|
||||||
this->emplace<TextElement>(word, MessageElementFlag::Text,
|
this->emplace<TextElement>(word, MessageElementFlag::Text,
|
||||||
|
|||||||
Reference in New Issue
Block a user