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/qml/qqmlproperty.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/qml/qml/qqmlproperty.cpp') diff --git a/src/qml/qml/qqmlproperty.cpp b/src/qml/qml/qqmlproperty.cpp index 1d95de9631..9595675ba6 100644 --- a/src/qml/qml/qqmlproperty.cpp +++ b/src/qml/qml/qqmlproperty.cpp @@ -355,16 +355,14 @@ void QQmlPropertyPrivate::initProperty(QObject *obj, const QString &name) terminal = path.last(); } - if (terminal.count() >= 3 && - terminal.at(0) == QLatin1Char('o') && - terminal.at(1) == QLatin1Char('n') && - (terminal.at(2).isUpper() || terminal.at(2) == '_')) { + if (terminal.count() >= 3 && terminal.at(0) == u'o' && terminal.at(1) == u'n' + && (terminal.at(2).isUpper() || terminal.at(2) == u'_')) { QString signalName = terminal.mid(2).toString(); int firstNon_; int length = signalName.length(); for (firstNon_ = 0; firstNon_ < length; ++firstNon_) - if (signalName.at(firstNon_) != '_') + if (signalName.at(firstNon_) != u'_') break; signalName[firstNon_] = signalName.at(firstNon_).toLower(); -- cgit v1.2.3