summaryrefslogtreecommitdiff
path: root/src/qdoc/openedlist.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2022-12-01 15:08:47 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2022-12-02 12:47:53 +0100
commit1ce71d77409bf8ea962444b59b9e5e7b5b98b188 (patch)
treef2fc74e92a789dcacb01d69cc3da2eb86681d767 /src/qdoc/openedlist.cpp
parent11c9f677a9880bb0456d7796dfd2518b1396add3 (diff)
downloadqttools-1ce71d77409bf8ea962444b59b9e5e7b5b98b188.tar.gz
qdoc: Fix clang warnings about temporary QRegularExpression objects
Pick-to: 6.4 Change-Id: I0d6c597552103251a8c09418d83ea2e38ed10012 Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io> Reviewed-by: Luca Di Sera <luca.disera@qt.io>
Diffstat (limited to 'src/qdoc/openedlist.cpp')
-rw-r--r--src/qdoc/openedlist.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qdoc/openedlist.cpp b/src/qdoc/openedlist.cpp
index f2ee45b49..a85e45ec4 100644
--- a/src/qdoc/openedlist.cpp
+++ b/src/qdoc/openedlist.cpp
@@ -15,7 +15,7 @@ OpenedList::OpenedList(ListStyle style) : sty(style), ini(1), nex(0) {}
OpenedList::OpenedList(const Location &location, const QString &hint) : sty(Bullet), ini(1)
{
- QRegularExpression hintSyntax("^(\\W*)([0-9]+|[A-Z]+|[a-z]+)(\\W*)$");
+ static const QRegularExpression hintSyntax("^(\\W*)([0-9]+|[A-Z]+|[a-z]+)(\\W*)$");
auto match = hintSyntax.match(hint);
if (match.hasMatch()) {