From 09ee528c40de17401487974dae5ce708079ac8ad Mon Sep 17 00:00:00 2001 From: David Schulz Date: Wed, 9 Nov 2022 15:38:22 +0100 Subject: Editor: unify assist processor handling Define the run type of the processor by its implementation instead of a enum value of the provider. The execution of a processor inside the assist now follows a unified procedure. Change-Id: Ibe9fab324c6072e77702c2663946d7a9f562a085 Reviewed-by: Reviewed-by: Christian Stenger Reviewed-by: Christian Kandeler --- src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp') diff --git a/src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp b/src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp index b2715df8433..ed590e7406e 100644 --- a/src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp +++ b/src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp @@ -17,6 +17,7 @@ #include #include +#include #include #include #include @@ -120,11 +121,12 @@ public: AssistInterface *assistInterface = m_editorWidget->createAssistInterface(FollowSymbol, ExplicitlyInvoked); - const QScopedPointer processor(createProcessor(assistInterface)); - + const QScopedPointer processor( + dynamic_cast(createProcessor(assistInterface))); const QScopedPointer immediateProposal( processor->immediateProposal(assistInterface)); - const QScopedPointer finalProposal(processor->perform(assistInterface)); + const QScopedPointer finalProposal( + processor->performAsync(assistInterface)); VirtualFunctionAssistProvider::clearParams(); -- cgit v1.2.3