diff options
author | Nikolai Kosjar <nikolai.kosjar@digia.com> | 2014-06-06 11:52:09 -0400 |
---|---|---|
committer | Nikolai Kosjar <nikolai.kosjar@digia.com> | 2014-06-12 17:02:52 +0200 |
commit | a6e04c363f5d9fe5d84528c8e921989d8d6121e0 (patch) | |
tree | 19b8ea509e37735b2b483772246a96bf1b195108 /src/plugins/cpptools/cpphighlightingsupport.cpp | |
parent | fc7f5ba364fb7a09a1038faf0f8c35b20c955810 (diff) | |
download | qt-creator-a6e04c363f5d9fe5d84528c8e921989d8d6121e0.tar.gz |
CppTools: CppHighlightingSupport takes a BaseTextDocument
...instead an ITextEditor.
The ITextEditor was only used to access the file path and QTextDocument
via the BaseTextEditorWidget.
Change-Id: Idef2b8162b992fe3718e16e2a046e2ff214846f2
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
Diffstat (limited to 'src/plugins/cpptools/cpphighlightingsupport.cpp')
-rw-r--r-- | src/plugins/cpptools/cpphighlightingsupport.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/cpptools/cpphighlightingsupport.cpp b/src/plugins/cpptools/cpphighlightingsupport.cpp index 7cd1e957c7..9c3bcd3dd5 100644 --- a/src/plugins/cpptools/cpphighlightingsupport.cpp +++ b/src/plugins/cpptools/cpphighlightingsupport.cpp @@ -31,10 +31,10 @@ using namespace CppTools; -CppHighlightingSupport::CppHighlightingSupport(TextEditor::ITextEditor *editor) - : m_editor(editor) +CppHighlightingSupport::CppHighlightingSupport(TextEditor::BaseTextDocument *baseTextDocument) + : m_baseTextDocument(baseTextDocument) { - Q_ASSERT(editor); + Q_ASSERT(baseTextDocument); } CppHighlightingSupport::~CppHighlightingSupport() |