From 8d71943cfa065384cb178580e59708eaab6144b4 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Fri, 21 Feb 2020 14:25:23 +0100 Subject: [PATCH] Mercurial: Fix compile for Qt5.11 Change-Id: I2ae766a76d34f0ca6e43ba6059fda82edaf0358d Reviewed-by: Orgad Shaneh --- src/plugins/mercurial/mercurialeditor.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/plugins/mercurial/mercurialeditor.cpp b/src/plugins/mercurial/mercurialeditor.cpp index f5b6df2f1ff..3523d72efc1 100644 --- a/src/plugins/mercurial/mercurialeditor.cpp +++ b/src/plugins/mercurial/mercurialeditor.cpp @@ -42,9 +42,10 @@ namespace Mercurial { namespace Internal { +// use QRegularExpression::anchoredPattern() when minimum Qt is raised to 5.12+ MercurialEditorWidget::MercurialEditorWidget(MercurialClient *client) : - exactIdentifier12(QRegularExpression::anchoredPattern(Constants::CHANGEIDEXACT12)), - exactIdentifier40(QRegularExpression::anchoredPattern(Constants::CHANGEIDEXACT40)), + exactIdentifier12(QString("\\A(?:") + Constants::CHANGEIDEXACT12 + QString(")\\z")), + exactIdentifier40(QString("\\A(?:") + Constants::CHANGEIDEXACT40 + QString(")\\z")), changesetIdentifier40(Constants::CHANGESETID40), m_client(client) {