diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2020-06-02 16:08:59 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2020-06-03 15:47:06 +0200 |
commit | 33a7f5ee4d8d4dc197100e3cda141063b89f74e6 (patch) | |
tree | 58a48bb5ab2a45d35c11187c6aeb4c94f974724c /src/qml/jsruntime/qv4regexpobject.cpp | |
parent | 5e0bf417fb38c53d4ae43f9f84fe42461cd2e00c (diff) |
QtQml: Use unicode character literals
This avoids the warnings on conversion to QChar.
Change-Id: Ib774f24592d6f09a531c60bb6fa6e5bdbec88120
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4regexpobject.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4regexpobject.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |