diff options
author | Jarek Kobus <jaroslaw.kobus@qt.io> | 2022-12-08 00:29:41 +0100 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@qt.io> | 2022-12-12 06:54:59 +0000 |
commit | 131ecdd3ec455642c32aacb0497b73155355202d (patch) | |
tree | 4a7854817a6a144629675584615aa512be27617b /src/plugins/texteditor/codeassist/asyncprocessor.cpp | |
parent | 1cdf29a1e6587eb44058c29e5fd50782e60afc08 (diff) | |
download | qt-creator-131ecdd3ec455642c32aacb0497b73155355202d.tar.gz |
TextEditor: Pass context object to lambda connections
Remove some unneeded lambda () brackets.
Glue lambda brackets with parameters brackets.
Change-Id: I66da839573a1633104f689834740bc2953f5868f
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Diffstat (limited to 'src/plugins/texteditor/codeassist/asyncprocessor.cpp')
-rw-r--r-- | src/plugins/texteditor/codeassist/asyncprocessor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/texteditor/codeassist/asyncprocessor.cpp b/src/plugins/texteditor/codeassist/asyncprocessor.cpp index 2ab696af47..851ee49774 100644 --- a/src/plugins/texteditor/codeassist/asyncprocessor.cpp +++ b/src/plugins/texteditor/codeassist/asyncprocessor.cpp @@ -12,7 +12,7 @@ namespace TextEditor { AsyncProcessor::AsyncProcessor() { - QObject::connect(&m_watcher, &QFutureWatcher<IAssistProposal *>::finished, [this]() { + QObject::connect(&m_watcher, &QFutureWatcher<IAssistProposal *>::finished, &m_watcher, [this] { setAsyncProposalAvailable(m_watcher.result()); }); } @@ -21,7 +21,7 @@ IAssistProposal *AsyncProcessor::perform() { IAssistProposal *result = immediateProposal(); interface()->prepareForAsyncUse(); - m_watcher.setFuture(Utils::runAsync([this]() { + m_watcher.setFuture(Utils::runAsync([this] { interface()->recreateTextDocument(); return performAsync(); })); |