Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 33d655e5 authored by Laurent Montel's avatar Laurent Montel 😁

Const'ify

parent 09d431ea
......@@ -35,8 +35,7 @@ using namespace KPIMTextEdit;
InsertHtmlEditor::InsertHtmlEditor(QWidget *parent)
: KPIMTextEdit::PlainTextEditor(parent)
{
KSyntaxHighlighting::Definition def;
def = mRepo.definitionForName(QStringLiteral("HTML"));
const KSyntaxHighlighting::Definition def = mRepo.definitionForName(QStringLiteral("HTML"));
if (!def.isValid()) {
qCWarning(KPIMTEXTEDIT_LOG) << "Invalid definition name";
}
......
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