From 9cc3988acd78d19ae4ae1881b97ff31003c4837d Mon Sep 17 00:00:00 2001 From: hjk Date: Thu, 25 Jan 2024 15:52:51 +0100 Subject: 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 --- src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (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 583d99d0969..0c06f86783c 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"); -- cgit v1.2.3