summaryrefslogtreecommitdiff
path: root/src/qdoc/config.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qdoc/config.cpp')
-rw-r--r--src/qdoc/config.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qdoc/config.cpp b/src/qdoc/config.cpp
index 5a54d5edc..5552cfa01 100644
--- a/src/qdoc/config.cpp
+++ b/src/qdoc/config.cpp
@@ -1086,7 +1086,7 @@ void Config::load(Location location, const QString &fileName)
QString path = fileInfo.canonicalPath();
pushWorkingDir(path);
QDir::setCurrent(path);
- QRegularExpression keySyntax(QRegularExpression::anchoredPattern(QLatin1String("\\w+(?:\\.\\w+)*")));
+ static const QRegularExpression keySyntax(QRegularExpression::anchoredPattern(QLatin1String("\\w+(?:\\.\\w+)*")));
#define SKIP_CHAR() \
do { \