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.cpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/plugins/texteditor/codeassist/asyncprocessor.cpp b/src/plugins/texteditor/codeassist/asyncprocessor.cpp
index 2ee5ada35f..2ab696af47 100644
--- a/src/plugins/texteditor/codeassist/asyncprocessor.cpp
+++ b/src/plugins/texteditor/codeassist/asyncprocessor.cpp
@@ -17,14 +17,13 @@ AsyncProcessor::AsyncProcessor()
});
}
-IAssistProposal *AsyncProcessor::perform(AssistInterface *interface)
+IAssistProposal *AsyncProcessor::perform()
{
- IAssistProposal *result = immediateProposal(interface);
- m_interface = interface;
- m_interface->prepareForAsyncUse();
+ IAssistProposal *result = immediateProposal();
+ interface()->prepareForAsyncUse();
m_watcher.setFuture(Utils::runAsync([this]() {
- m_interface->recreateTextDocument();
- return performAsync(m_interface);
+ interface()->recreateTextDocument();
+ return performAsync();
}));
return result;
}
@@ -44,9 +43,8 @@ void AsyncProcessor::cancel()
});
}
-IAssistProposal *AsyncProcessor::immediateProposal(AssistInterface *interface)
+IAssistProposal *AsyncProcessor::immediateProposal()
{
- Q_UNUSED(interface)
return nullptr;
}