From 33a7f5ee4d8d4dc197100e3cda141063b89f74e6 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Tue, 2 Jun 2020 16:08:59 +0200 Subject: QtQml: Use unicode character literals This avoids the warnings on conversion to QChar. Change-Id: Ib774f24592d6f09a531c60bb6fa6e5bdbec88120 Reviewed-by: Fabian Kosmale --- src/qml/jsruntime/qv4regexpobject.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/qml/jsruntime/qv4regexpobject.cpp') diff --git a/src/qml/jsruntime/qv4regexpobject.cpp b/src/qml/jsruntime/qv4regexpobject.cpp index 73122fbf75..c2171d7c0e 100644 --- a/src/qml/jsruntime/qv4regexpobject.cpp +++ b/src/qml/jsruntime/qv4regexpobject.cpp @@ -171,7 +171,7 @@ QString RegExpObject::toString() const p = QStringLiteral("(?:)"); } else { // escape certain parts, see ch. 15.10.4 - p.replace('/', QLatin1String("\\/")); + p.replace(u'/', QLatin1String("\\/")); } return p; } -- cgit v1.2.3