From ce161d0b16f498636e3e3adf74c8bae603b4c76b Mon Sep 17 00:00:00 2001 From: Jarek Kobus Date: Wed, 14 Dec 2022 17:40:42 +0100 Subject: VcsBase & dependent: Fix const correctness And some minor cleanups. Change-Id: Id0c2df6865ba84c054f0fb97c0ac42a76a128355 Reviewed-by: Orgad Shaneh --- src/plugins/git/gitplugin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/plugins/git/gitplugin.cpp') diff --git a/src/plugins/git/gitplugin.cpp b/src/plugins/git/gitplugin.cpp index 2fbeb17739..cc2764c58a 100644 --- a/src/plugins/git/gitplugin.cpp +++ b/src/plugins/git/gitplugin.cpp @@ -1634,8 +1634,8 @@ bool GitPluginPrivate::activateCommit() return true; auto model = qobject_cast(editor->fileModel()); - CommitType commitType = editor->commitType(); - QString amendSHA1 = editor->amendSHA1(); + const CommitType commitType = editor->commitType(); + const QString amendSHA1 = editor->amendSHA1(); if (model->hasCheckedFiles() || !amendSHA1.isEmpty()) { // get message & commit if (!DocumentManager::saveDocument(editorDocument)) -- cgit v1.2.1