From 48748bd62f8b96e6bd64e5a249f0fbb0f7561166 Mon Sep 17 00:00:00 2001 From: Andre Hartmann Date: Tue, 6 Aug 2024 13:27:50 +0200 Subject: [PATCH] VCS: Small cleanup in UrlTextCursorHandler::findContentsUnderCursor() Change-Id: Iec20500d86bf4e585d037e9b4028ccb28194124c Reviewed-by: Orgad Shaneh --- src/plugins/vcsbase/vcsbaseeditor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/vcsbase/vcsbaseeditor.cpp b/src/plugins/vcsbase/vcsbaseeditor.cpp index 7efdd7d20f5..8be8a5b752b 100644 --- a/src/plugins/vcsbase/vcsbaseeditor.cpp +++ b/src/plugins/vcsbase/vcsbaseeditor.cpp @@ -409,12 +409,12 @@ bool UrlTextCursorHandler::findContentsUnderCursor(const QTextCursor &cursor) QRegularExpression &pattern; int matchNumber; QString urlPrefix; - } RegexUrls[] = { + } const regexUrls[] = { {m_pattern, 0, ""}, {m_jiraPattern, 2, "https://bugreports.qt.io/browse/"}, {m_gerritPattern, 1, "https://codereview.qt-project.org/r/"}, }; - for (const auto &r : RegexUrls) { + for (const auto &r : regexUrls) { QRegularExpressionMatchIterator i = r.pattern.globalMatch(line); while (i.hasNext()) { const QRegularExpressionMatch match = i.next();