forked from qt-creator/qt-creator
VCS: Refactor createDiffHighlighter
All plugins do the same... Change-Id: I21e5a1d7507292add91199a3db75df74165b63b1 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
6dd8726a16
commit
725ecc5f91
@@ -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))
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user