summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cpphighlightingsupport.cpp
diff options
context:
space:
mode:
authorNikolai Kosjar <nikolai.kosjar@digia.com>2014-06-06 11:52:09 -0400
committerNikolai Kosjar <nikolai.kosjar@digia.com>2014-06-12 17:02:52 +0200
commita6e04c363f5d9fe5d84528c8e921989d8d6121e0 (patch)
tree19b8ea509e37735b2b483772246a96bf1b195108 /src/plugins/cpptools/cpphighlightingsupport.cpp
parentfc7f5ba364fb7a09a1038faf0f8c35b20c955810 (diff)
downloadqt-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.cpp6
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()