diff options
author | Orgad Shaneh <[email protected]> | 2013-01-17 22:08:29 +0200 |
---|---|---|
committer | Orgad Shaneh <[email protected]> | 2013-01-18 12:43:22 +0100 |
commit | 725ecc5f9179df92d4c26dbedea12028fa7d3ea1 (patch) | |
tree | 35b82acd67954a59927323f304d64318023fe7ae /src/plugins/vcsbase/diffhighlighter.cpp | |
parent | 6dd8726a16adacd9e65f95d77982ea9b081f327f (diff) |
VCS: Refactor createDiffHighlighter
All plugins do the same...
Change-Id: I21e5a1d7507292add91199a3db75df74165b63b1
Reviewed-by: Tobias Hunger <[email protected]>
Diffstat (limited to 'src/plugins/vcsbase/diffhighlighter.cpp')
-rw-r--r-- | src/plugins/vcsbase/diffhighlighter.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/plugins/vcsbase/diffhighlighter.cpp b/src/plugins/vcsbase/diffhighlighter.cpp index 538a5a82f31..278b32a1388 100644 --- a/src/plugins/vcsbase/diffhighlighter.cpp +++ b/src/plugins/vcsbase/diffhighlighter.cpp @@ -130,9 +130,8 @@ DiffFormats DiffHighlighterPrivate::analyzeLine(const QString &text) const } // namespace Internal // --- DiffHighlighter -DiffHighlighter::DiffHighlighter(const QRegExp &filePattern, - QTextDocument *document) : - TextEditor::SyntaxHighlighter(document), +DiffHighlighter::DiffHighlighter(const QRegExp &filePattern) : + TextEditor::SyntaxHighlighter(static_cast<QTextDocument *>(0)), d(new Internal::DiffHighlighterPrivate(filePattern)) { } |