From 4a24df38a3a164c51f9cdddd566c9928a7482a0a Mon Sep 17 00:00:00 2001 From: hjk Date: Thu, 29 Aug 2013 15:46:04 +0200 Subject: EditorManager: Use static pattern, adjust surrounding code Change-Id: I3255a0150cd9a730336456c5a9f986eb74fefbff Reviewed-by: Tobias Hunger --- src/plugins/cpptools/cpptoolseditorsupport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/cpptools/cpptoolseditorsupport.cpp') diff --git a/src/plugins/cpptools/cpptoolseditorsupport.cpp b/src/plugins/cpptools/cpptoolseditorsupport.cpp index e99338bc4a..6bb8bfbc04 100644 --- a/src/plugins/cpptools/cpptoolseditorsupport.cpp +++ b/src/plugins/cpptools/cpptoolseditorsupport.cpp @@ -305,7 +305,7 @@ void CppEditorSupport::startHighlighting() // Start highlighting only if the editor is or would be visible // (in case another mode is active) in the edit mode. - if (!Core::EditorManager::instance()->visibleEditors().contains(m_textEditor)) + if (!Core::EditorManager::visibleEditors().contains(m_textEditor)) return; if (m_highlightingSupport->requiresSemanticInfo()) { -- cgit v1.2.1