diff options
Diffstat (limited to 'src/qdoc/openedlist.cpp')
-rw-r--r-- | src/qdoc/openedlist.cpp | 2 |
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()) { |