diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2020-02-19 23:26:24 +0200 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2020-02-21 08:28:34 +0000 |
commit | a83f0c5d74e45899f2412def152959147a12e2b1 (patch) | |
tree | a14abcccd87b0169f3f15e803ed50467ca05fcb6 /src/plugins/git | |
parent | e445f7aac3600b36af6b604852583891e473fcfe (diff) | |
download | qt-creator-a83f0c5d74e45899f2412def152959147a12e2b1.tar.gz |
VCS: Replace QRegExp with QRegularExpression in VcsBaseEditor
Change-Id: I8e8a6649e441597e29e88506d494ec69260bebd1
Reviewed-by: Samuel Gaist <samuel.gaist@idiap.ch>
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Diffstat (limited to 'src/plugins/git')
-rw-r--r-- | src/plugins/git/giteditor.cpp | 4 | ||||
-rw-r--r-- | src/plugins/git/gitplugin.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/git/giteditor.cpp b/src/plugins/git/giteditor.cpp index 4daa09aa62..2e2c3cb7c7 100644 --- a/src/plugins/git/giteditor.cpp +++ b/src/plugins/git/giteditor.cpp @@ -117,8 +117,8 @@ GitEditorWidget::GitEditorWidget() : --- a/src/plugins/git/giteditor.cpp +++ b/src/plugins/git/giteditor.cpp */ - setDiffFilePattern(QRegExp("^(?:diff --git a/|index |[+-]{3} (?:/dev/null|[ab]/(.+$)))")); - setLogEntryPattern(QRegExp("^commit ([0-9a-f]{8})[0-9a-f]{32}")); + setDiffFilePattern("^(?:diff --git a/|index |[+-]{3} (?:/dev/null|[ab]/(.+$)))"); + setLogEntryPattern("^commit ([0-9a-f]{8})[0-9a-f]{32}"); setAnnotateRevisionTextFormat(tr("&Blame %1")); setAnnotatePreviousRevisionTextFormat(tr("Blame &Parent Revision %1")); setAnnotationEntryPattern("^(" CHANGE_PATTERN ") "); diff --git a/src/plugins/git/gitplugin.cpp b/src/plugins/git/gitplugin.cpp index 3babb1e81d..54b8dbe999 100644 --- a/src/plugins/git/gitplugin.cpp +++ b/src/plugins/git/gitplugin.cpp @@ -132,7 +132,7 @@ class GitReflogEditorWidget : public GitEditorWidget public: GitReflogEditorWidget() { - setLogEntryPattern(QRegExp("^([0-9a-f]{8,}) [^}]*\\}: .*$")); + setLogEntryPattern("^([0-9a-f]{8,}) [^}]*\\}: .*$"); } QString revisionSubject(const QTextBlock &inBlock) const override |