forked from qt-creator/qt-creator
VCS: Refactor annotationChanges() in VcsBaseEditor
Devirtualize the function, and use QRegularExpression with globalMatch. Change-Id: I18c92cb37b535c616f03f45dff8b18249c961d5d Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
3cdbd8683d
commit
3c0b89f697
@@ -41,7 +41,6 @@ public:
|
||||
explicit MercurialEditorWidget(MercurialClient *client);
|
||||
|
||||
private:
|
||||
QSet<QString> annotationChanges() const override;
|
||||
QString changeUnderCursor(const QTextCursor &cursor) const override;
|
||||
VcsBase::BaseAnnotationHighlighter *createAnnotationHighlighter(
|
||||
const QSet<QString> &changes) const override;
|
||||
@@ -50,7 +49,6 @@ private:
|
||||
|
||||
mutable QRegExp exactIdentifier12;
|
||||
mutable QRegExp exactIdentifier40;
|
||||
mutable QRegExp changesetIdentifier12;
|
||||
const QRegExp changesetIdentifier40;
|
||||
|
||||
MercurialClient *m_client;
|
||||
|
||||
Reference in New Issue
Block a user