From cfd3b561878c6b2559b3fc3db3c1554c67f039f4 Mon Sep 17 00:00:00 2001 From: Nikolai Kosjar Date: Fri, 23 Jan 2015 13:44:50 +0100 Subject: CppEditor: Move CppEditorWidget::linkToSymbol to CppTools * Cuts direct dependency to CPlusPlus from cppeditor.h, but cppfunctiondecldeflink.h still pulls it in. * Cuts direct dependency to cppeditor.h from cppvirtualfunctionassistprovider.cpp, but it still depends on cppeditorconstants.h. * Cuts direct dependency to cppeditor.h from cppelementevaluator.cpp. The long-term goal is to make the CppEditor independent from concrete code model backends. Change-Id: I291ee0d0da5fc5ed1a839a763fe7be11dcf7a6fb Reviewed-by: Marco Bubke --- src/plugins/cppeditor/cppelementevaluator.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/plugins/cppeditor/cppelementevaluator.cpp') diff --git a/src/plugins/cppeditor/cppelementevaluator.cpp b/src/plugins/cppeditor/cppelementevaluator.cpp index 086e33b335..55c3772262 100644 --- a/src/plugins/cppeditor/cppelementevaluator.cpp +++ b/src/plugins/cppeditor/cppelementevaluator.cpp @@ -30,8 +30,6 @@ #include "cppelementevaluator.h" -#include "cppeditor.h" - #include #include @@ -302,7 +300,7 @@ CppDeclarableElement::CppDeclarableElement(Symbol *declaration) } tooltip = overview.prettyType(declaration->type(), qualifiedName); - link = CppEditorWidget::linkToSymbol(declaration); + link = CppTools::linkToSymbol(declaration); helpMark = name; } -- cgit v1.2.1