dbushelper: Use QRegularExpression instead of QRegExp
The pattern does not contain any wildcard specific text
This commit is contained in:
parent
042adebd0a
commit
b3163d8725
1 changed files with 2 additions and 2 deletions
|
@ -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("_"));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue