diff options
author | David Schulz <david.schulz@qt.io> | 2021-09-15 07:04:12 +0200 |
---|---|---|
committer | David Schulz <david.schulz@qt.io> | 2021-09-16 08:25:36 +0000 |
commit | 4324f3e8c1ddb4250ba2e73bd9cb4bd00d49f595 (patch) | |
tree | 1d9d21862c369f0d7b0acf45233a8444614e8fb9 /src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp | |
parent | 897d3349fa3e4ed0a28e70ccbb0b8730a62058cb (diff) |
Editor: pass AssistInterface to createProcessor
The interface can be used for checking the context of a codeassist
request to determine
the correct processor that has to be created.
Change-Id: I47ddb05c46399566e27bae21711f11a3a4132c3f
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp')
-rw-r--r-- | src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp b/src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp index e5127f617d..59bd65c092 100644 --- a/src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp +++ b/src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp @@ -137,9 +137,9 @@ public: { VirtualFunctionAssistProvider::configure(params); - const QScopedPointer<IAssistProcessor> processor(createProcessor()); AssistInterface *assistInterface - = m_editorWidget->createAssistInterface(FollowSymbol, ExplicitlyInvoked); + = m_editorWidget->createAssistInterface(FollowSymbol, ExplicitlyInvoked); + const QScopedPointer<IAssistProcessor> processor(createProcessor(assistInterface)); const QScopedPointer<IAssistProposal> immediateProposal( processor->immediateProposal(assistInterface)); |