summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Montel <[email protected]>2018-01-16 08:19:31 +0100
committerLaurent Montel <[email protected]>2018-01-16 08:19:31 +0100
commit33d655e57751891cb0bd170051ea94ae3f655b0b (patch)
tree3e12cc1ed7a04893faf771d269d478de7c8d8225
parent09d431ea95b1fafe4cd506321f6d3d68cf195d2b (diff)
Const'ify
-rw-r--r--src/inserthtmleditor.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/inserthtmleditor.cpp b/src/inserthtmleditor.cpp
index dcbb3aa..3cd7952 100644
--- a/src/inserthtmleditor.cpp
+++ b/src/inserthtmleditor.cpp
@@ -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";
}