diff options
Diffstat (limited to 'src/gui/kernel/qplatformdialoghelper.cpp')
-rw-r--r-- | src/gui/kernel/qplatformdialoghelper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qplatformdialoghelper.cpp b/src/gui/kernel/qplatformdialoghelper.cpp index 82b60b7749..9ed2557ad9 100644 --- a/src/gui/kernel/qplatformdialoghelper.cpp +++ b/src/gui/kernel/qplatformdialoghelper.cpp @@ -771,7 +771,7 @@ const char QPlatformFileDialogHelper::filterRegExp[] = QStringList QPlatformFileDialogHelper::cleanFilterList(const QString &filter) { #if QT_CONFIG(regularexpression) - QRegularExpression regexp(QString::fromLatin1(filterRegExp)); + static const QRegularExpression regexp(QString::fromLatin1(filterRegExp)); Q_ASSERT(regexp.isValid()); QString f = filter; QRegularExpressionMatch match = regexp.match(filter); |