diff --git a/core/dbushelper.cpp b/core/dbushelper.cpp index 2dd7c5fba..adae5076e 100644 --- a/core/dbushelper.cpp +++ b/core/dbushelper.cpp @@ -11,7 +11,7 @@ #include #include #include -#include +#include #include #include @@ -44,7 +44,7 @@ static DBusInstancePrivate dbusInstance; void filterNonExportableCharacters(QString &s) { - static QRegExp regexp(QStringLiteral("[^A-Za-z0-9_]"), Qt::CaseSensitive, QRegExp::Wildcard); + static QRegularExpression regexp(QStringLiteral("[^A-Za-z0-9_]"), QRegularExpression::CaseInsensitiveOption); s.replace(regexp, QLatin1String("_")); }