summaryrefslogtreecommitdiff
path: root/src/plugins/texteditor/codeassist/asyncprocessor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/texteditor/codeassist/asyncprocessor.cpp')
-rw-r--r--src/plugins/texteditor/codeassist/asyncprocessor.cpp4
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();
}));