FakeVim: Fix warning about unused lambda capture

Change-Id: I136f52002e02611d41a309809408bcde57aceefe
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
hjk
2023-11-20 11:09:40 +01:00
parent 458beb8582
commit 01cecddce7

View File

@@ -1630,7 +1630,7 @@ void FakeVimPlugin::editorOpened(IEditor *editor)
*on = tew->multiTextCursor().hasMultipleCursors(); *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); theFakeVimCompletionAssistProvider.setActive(needle, forward, handler);
}); });
@@ -1764,7 +1764,7 @@ void FakeVimPlugin::editorOpened(IEditor *editor)
handler->tabPreviousRequested.set([] { triggerAction(Core::Constants::GOTOPREVINHISTORY); }); handler->tabPreviousRequested.set([] { triggerAction(Core::Constants::GOTOPREVINHISTORY); });
handler->completionRequested.set([this, tew] { handler->completionRequested.set([tew] {
if (tew) if (tew)
tew->invokeAssist(Completion, &theFakeVimCompletionAssistProvider); tew->invokeAssist(Completion, &theFakeVimCompletionAssistProvider);
}); });