QbsPM:QmakePM: Replace QRegExp by QRegularExpression

Task-number: QTCREATORBUG-24098
Change-Id: If561553a6030f8eaedbafbc1b4531a6b63c4aa36
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Christian Stenger
2020-07-14 11:20:22 +02:00
parent 9fa1286faf
commit 9783761df3
6 changed files with 27 additions and 25 deletions

View File

@@ -44,7 +44,7 @@
#include <QCryptographicHash>
#include <QJSEngine>
#include <QProcess>
#include <QRegExp>
#include <QRegularExpression>
#include <QVariantMap>
namespace QbsProjectManager {
@@ -71,7 +71,7 @@ static QString toJSLiteral(const bool b)
static QString toJSLiteral(const QString &str)
{
QString js = str;
js.replace(QRegExp("([\\\\\"])"), "\\\\1");
js.replace(QRegularExpression("([\\\\\"])"), "\\\\1");
js.prepend('"');
js.append('"');
return js;