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/qml/qqmltypedata.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/qml/qqmltypedata.cpp')
-rw-r--r-- | src/qml/qml/qqmltypedata.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/qml/qqmltypedata.cpp b/src/qml/qml/qqmltypedata.cpp index 3b50027c4f..324d5a863f 100644 --- a/src/qml/qml/qqmltypedata.cpp +++ b/src/qml/qml/qqmltypedata.cpp @@ -351,7 +351,7 @@ void QQmlTypeData::done() auto objectId = containingType.lookupInlineComponentIdByName(type.type.pendingResolutionName()); if (objectId < 0) { // can be any negative number if we tentatively resolved it in QQmlImport but it actually was not an inline component const QString typeName = stringAt(it.key()); - int lastDot = typeName.lastIndexOf('.'); + int lastDot = typeName.lastIndexOf(u'.'); QList<QQmlError> errors = type.typeData ? type.typeData->errors() : QList<QQmlError>{}; QQmlError error; @@ -505,7 +505,7 @@ void QQmlTypeData::done() // associate inline components to root component { - auto typeName = finalUrlString().splitRef('/').last().split('.').first().toString(); + auto typeName = finalUrlString().splitRef(u'/').last().split(u'.').first().toString(); // typeName can be empty if a QQmlComponent was constructed with an empty QUrl parameter if (!typeName.isEmpty() && typeName.at(0).isUpper() && !m_inlineComponentData.isEmpty()) { QHashedStringRef const hashedStringRef { typeName }; |