diff options
author | Erik Verbruggen <erik.verbruggen@digia.com> | 2013-09-04 18:15:08 +0200 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@digia.com> | 2013-09-10 11:45:38 +0200 |
commit | 3a5d3a2fe93f2d565713790cee6c981169a888c2 (patch) | |
tree | 7346ff90cab2aabb0052380a55d908f182c728ac /src/plugins/cpptools/cpphighlightingsupportinternal.cpp | |
parent | 0c6b64484cebc5e28ec220cc1ca2b19de9f017bd (diff) | |
download | qt-creator-3a5d3a2fe93f2d565713790cee6c981169a888c2.tar.gz |
C++: unify highlighting/code-completion support "factories".
Both semantic highlighting and code-completion go hand-in-hand, so now
the ModelManagerSupport class acts as a "factory" for the model manager.
Depending on the mime-type of the document in the editor, the model
manager will return the appropriate highlighter or code-completion
engine. If none is registered, the built-in fall-back is used.
Change-Id: I3e5dbb0e3b58e077dd5eda9aecb2ce5d448ac0b8
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
Diffstat (limited to 'src/plugins/cpptools/cpphighlightingsupportinternal.cpp')
-rw-r--r-- | src/plugins/cpptools/cpphighlightingsupportinternal.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/plugins/cpptools/cpphighlightingsupportinternal.cpp b/src/plugins/cpptools/cpphighlightingsupportinternal.cpp index ae39a0a076..4ad285258b 100644 --- a/src/plugins/cpptools/cpphighlightingsupportinternal.cpp +++ b/src/plugins/cpptools/cpphighlightingsupportinternal.cpp @@ -92,12 +92,3 @@ QFuture<TextEditor::HighlightingResult> CppHighlightingSupportInternal::highligh LookupContext context(doc, snapshot); return CheckSymbols::go(doc, context, macroUses); } - -CppHighlightingSupportInternalFactory::~CppHighlightingSupportInternalFactory() -{ -} - -CppHighlightingSupport *CppHighlightingSupportInternalFactory::highlightingSupport(TextEditor::ITextEditor *editor) -{ - return new CppHighlightingSupportInternal(editor); -} |