From e3c6c2731eb272ca4f66e7836281992fb1f90e04 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Thu, 4 Jul 2019 12:20:42 +0200 Subject: [PATCH] regular expression shouldn't be static --- src/plasma/svg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plasma/svg.cpp b/src/plasma/svg.cpp index 011e807a5..accdbbcb6 100644 --- a/src/plasma/svg.cpp +++ b/src/plasma/svg.cpp @@ -310,7 +310,7 @@ QPixmap SvgPrivate::findInCache(const QString &elementId, qreal ratio, const QSi if (elementsWithSizeHints.isEmpty()) { // Fetch all size hinted element ids from the theme's rect cache // and store them locally. - static const QRegularExpression sizeHintedKeyExpr(CACHE_ID_NATURAL_SIZE(QStringLiteral("$(\\d+)-(\\d+)-(.+)^"), status, ratio)); + const QRegularExpression sizeHintedKeyExpr(CACHE_ID_NATURAL_SIZE(QStringLiteral("$(\\d+)-(\\d+)-(.+)^"), status, ratio)); foreach (const QString &key, cacheAndColorsTheme()->listCachedRectKeys(path)) { const auto match = sizeHintedKeyExpr.match(key);