Commit 22b3cf33 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Const'ify

parent e2a25745
Pipeline #25724 passed with stage
in 10 minutes and 15 seconds
......@@ -264,7 +264,7 @@ void PlainTextMarkupBuilder::insertImage(const QString &src, qreal width,
Q_UNUSED(width)
Q_UNUSED(height)
auto ref = addReference(src);
const auto ref = addReference(src);
d->m_text.append(QStringLiteral("[%1]").arg(ref));
}
......
......@@ -47,10 +47,7 @@ InsertHtmlEditor::InsertHtmlEditor(QWidget *parent)
hl->setDefinition(def);
setFocus();
mTextEditorCompleter = new KPIMTextEdit::TextEditorCompleter(this, this);
QStringList completerList;
completerList << QStringLiteral("<b></b>")
<< QStringLiteral("<i></i>")
<< QStringLiteral("<u></u>");
const QStringList completerList = { QStringLiteral("<b></b>"), QStringLiteral("<i></i>"), QStringLiteral("<u></u>")};
//Add more
mTextEditorCompleter->setCompleterStringList(completerList);
mTextEditorCompleter->setExcludeOfCharacters(QStringLiteral("~!@#$%^&*()+{}|,./;'[]\\-= "));
......
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