diff options
Diffstat (limited to 'src/qdoc/qmlcodemarker.cpp')
-rw-r--r-- | src/qdoc/qmlcodemarker.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qdoc/qmlcodemarker.cpp b/src/qdoc/qmlcodemarker.cpp index 1475d2083..3ad787c93 100644 --- a/src/qdoc/qmlcodemarker.cpp +++ b/src/qdoc/qmlcodemarker.cpp @@ -27,7 +27,7 @@ bool QmlCodeMarker::recognizeCode(const QString &code) { #ifndef QT_NO_DECLARATIVE // Naive pre-check; starts with an import statement or 'CamelCase {' - QRegularExpression regExp(QStringLiteral("^\\s*(import |([A-Z][a-z0-9]*)+\\s?{)")); + static const QRegularExpression regExp(QStringLiteral("^\\s*(import |([A-Z][a-z0-9]*)+\\s?{)")); if (!regExp.match(code).hasMatch()) return false; |