dbushelper: Use QRegularExpression instead of QRegExp

The pattern does not contain any wildcard specific text
This commit is contained in:
Alexander Lohnau 2023-04-19 21:22:58 +02:00
parent 042adebd0a
commit b3163d8725

View file

@ -11,7 +11,7 @@
#include <QDebug>
#include <QFile>
#include <QProcess>
#include <QRegExp>
#include <QRegularExpression>
#include <QStandardPaths>
#include <QUrl>
@ -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("_"));
}