Commit 83d76049 authored by Laurent Montel's avatar Laurent Montel 😁

Reserve size

parent 100967c6
......@@ -33,6 +33,7 @@ void AdBlockSyntaxHighlighter::init()
{
QTextCharFormat commentFormat;
commentFormat.setForeground(Qt::darkYellow);
m_rules.reserve(4);
QRegularExpression commentRegex(QStringLiteral("^!.*"));
m_rules.append(KPIMTextEdit::Rule(commentRegex, commentFormat));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment