forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user