diff options
author | hjk <hjk@qt.io> | 2024-01-25 15:52:51 +0100 |
---|---|---|
committer | hjk <hjk@qt.io> | 2024-01-26 12:16:52 +0000 |
commit | 9cc3988acd78d19ae4ae1881b97ff31003c4837d (patch) | |
tree | fe00f876a2fc9789a2dc7ce3943702857526ba5e /src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp | |
parent | 3c9238d29ae6ae360b1b06f9456048187347bc01 (diff) |
CppEditor: Remove some CppEditorPlugin member functions
Inline renameSymbolUnderCursor() and switchDeclarationDefinition()
implementation on the caller side. Also use the widget that's known
there instead of the currentCppEditorWidget().
Change-Id: I158bef34234ce199accf25861062c97491bea381
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 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp b/src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp index 583d99d096..0c06f86783 100644 --- a/src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp +++ b/src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp @@ -357,7 +357,7 @@ F2TestCase::F2TestCase(CppEditorAction action, if (useClangd && tag.endsWith("Var")) initialTestFile->m_editorWidget->openLinkUnderCursor(); else - CppEditorPlugin::instance()->switchDeclarationDefinition(); + initialTestFile->m_editorWidget->switchDeclarationDefinition(/*inNextSplit*/false); break; default: QFAIL("Unknown test action"); |