forked from qt-creator/qt-creator
TextEditor: Consolidate document access functions.
There was document(), textDocument() and baseTextDocument(). Two should be enough... Change-Id: Id9e41c8d857c5cb3269a9fce5ab594d34448c982 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
@@ -121,7 +121,7 @@ CppEditorSupport::CppEditorSupport(CppModelManager *modelManager, BaseTextEditor
|
||||
, m_initialized(false)
|
||||
, m_lastHighlightRevision(0)
|
||||
, m_lastHighlightOnCompleteSemanticInfo(true)
|
||||
, m_highlightingSupport(modelManager->highlightingSupport(textEditor->baseTextDocument()))
|
||||
, m_highlightingSupport(modelManager->highlightingSupport(textEditor->textDocument()))
|
||||
, m_completionAssistProvider(
|
||||
modelManager->completionAssistProvider(textEditor->document()->mimeType()))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user