From 1dd2eea25c51a79c5e1391a6fd938f28e5e2ffc5 Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Wed, 11 May 2022 11:36:24 +0200 Subject: [PATCH] Git: Fix compiler warning Remove unused lambda capture Change-Id: I623aff7800279d9f9d6088230b76c0f5db59fc2e Reviewed-by: Orgad Shaneh Reviewed-by: Qt CI Bot --- src/plugins/git/giteditor.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/plugins/git/giteditor.cpp b/src/plugins/git/giteditor.cpp index e7c3f2154ef..8fd16e26071 100644 --- a/src/plugins/git/giteditor.cpp +++ b/src/plugins/git/giteditor.cpp @@ -67,10 +67,9 @@ class GitLogFilterWidget : public QToolBar public: GitLogFilterWidget(GitEditorWidget *editor) { - auto addLineEdit = [this](const QString &placeholder, - const QString &tooltip, - GitEditorWidget *editor) - { + auto addLineEdit = [](const QString &placeholder, + const QString &tooltip, + GitEditorWidget *editor) { auto lineEdit = new Utils::FancyLineEdit; lineEdit->setFiltering(true); lineEdit->setToolTip(tooltip);