From afd56bd8ada761b87c40d80a07cd3b3766b2d2f8 Mon Sep 17 00:00:00 2001 From: hjk Date: Wed, 3 Sep 2014 12:43:01 +0200 Subject: CppEditor: Don't set TextEditor context twice Change-Id: I9ea66b8a890c75cd993a0e160d79231e5662a1e3 Reviewed-by: Eike Ziller --- src/plugins/cppeditor/cppeditor.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/plugins') diff --git a/src/plugins/cppeditor/cppeditor.cpp b/src/plugins/cppeditor/cppeditor.cpp index e33a09ac58..cf5228c442 100644 --- a/src/plugins/cppeditor/cppeditor.cpp +++ b/src/plugins/cppeditor/cppeditor.cpp @@ -92,8 +92,7 @@ namespace Internal { CppEditor::CppEditor() { - m_context.add(ProjectExplorer::Constants::LANG_CXX); - m_context.add(TextEditor::Constants::C_TEXTEDITOR); + addContext(ProjectExplorer::Constants::LANG_CXX); } Q_GLOBAL_STATIC(CppTools::SymbolFinder, symbolFinder) -- cgit v1.2.1