summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Montel <[email protected]>2018-01-16 08:53:19 +0100
committerLaurent Montel <[email protected]>2018-01-16 08:53:19 +0100
commit563a30f3fbffdb64624b9d7103f4ce7c307a54d8 (patch)
treebccb5a3f8c3baf911685cf2b9597690431619a7e
parentaef20aab7b6b9865a975bd3953bd0d21362aeaf4 (diff)
Const'ify
-rw-r--r--grantleethemeeditor/grantleeplaintexteditor.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/grantleethemeeditor/grantleeplaintexteditor.cpp b/grantleethemeeditor/grantleeplaintexteditor.cpp
index ec30f04..d7a017f 100644
--- a/grantleethemeeditor/grantleeplaintexteditor.cpp
+++ b/grantleethemeeditor/grantleeplaintexteditor.cpp
@@ -33,8 +33,7 @@ using namespace GrantleeThemeEditor;
GrantleePlainTextEditor::GrantleePlainTextEditor(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(GRANTLEETHEMEEDITOR_LOG) << "Invalid definition name";
}