From 01cecddce7332f4e8f74a7ea5ea2c5f09b91d376 Mon Sep 17 00:00:00 2001 From: hjk Date: Mon, 20 Nov 2023 11:09:40 +0100 Subject: [PATCH] FakeVim: Fix warning about unused lambda capture Change-Id: I136f52002e02611d41a309809408bcde57aceefe Reviewed-by: Jarek Kobus --- src/plugins/fakevim/fakevimplugin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/fakevim/fakevimplugin.cpp b/src/plugins/fakevim/fakevimplugin.cpp index 5ac5734866a..a46aa2b2555 100644 --- a/src/plugins/fakevim/fakevimplugin.cpp +++ b/src/plugins/fakevim/fakevimplugin.cpp @@ -1630,7 +1630,7 @@ void FakeVimPlugin::editorOpened(IEditor *editor) *on = tew->multiTextCursor().hasMultipleCursors(); }); - handler->simpleCompletionRequested.set([this, handler](const QString &needle, bool forward) { + handler->simpleCompletionRequested.set([handler](const QString &needle, bool forward) { theFakeVimCompletionAssistProvider.setActive(needle, forward, handler); }); @@ -1764,7 +1764,7 @@ void FakeVimPlugin::editorOpened(IEditor *editor) handler->tabPreviousRequested.set([] { triggerAction(Core::Constants::GOTOPREVINHISTORY); }); - handler->completionRequested.set([this, tew] { + handler->completionRequested.set([tew] { if (tew) tew->invokeAssist(Completion, &theFakeVimCompletionAssistProvider); });