diff options
author | Sona Kurazyan <[email protected]> | 2022-04-14 15:46:14 +0200 |
---|---|---|
committer | Sona Kurazyan <[email protected]> | 2022-05-03 01:38:46 +0200 |
commit | 39a6307178603211e070580ed0c25ec65c0b8a70 (patch) | |
tree | e3f95d155a92a0d9c49f6694d9aa4874d49764d0 /src/tools/windeployqt/qmlutils.cpp | |
parent | a0539ed53f45619df7e4aad664369301dd6da091 (diff) |
Tools: use _L1 for for creating Latin-1 string literals
As a drive-by, fix qsizetype -> int narrowing conversion warnings for
the touched lines.
Task-number: QTBUG-98434
Change-Id: I6d4712a71b5ebf3f379f1f98ea476557bce963ef
Reviewed-by: Marc Mutz <[email protected]>
Diffstat (limited to 'src/tools/windeployqt/qmlutils.cpp')
-rw-r--r-- | src/tools/windeployqt/qmlutils.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tools/windeployqt/qmlutils.cpp b/src/tools/windeployqt/qmlutils.cpp index f51462b2df4..62af9e12f35 100644 --- a/src/tools/windeployqt/qmlutils.cpp +++ b/src/tools/windeployqt/qmlutils.cpp @@ -39,6 +39,8 @@ QT_BEGIN_NAMESPACE +using namespace Qt::StringLiterals; + bool operator==(const QmlImportScanResult::Module &m1, const QmlImportScanResult::Module &m2) { return m1.className.isEmpty() ? m1.name == m2.name : m1.className == m2.className; @@ -128,7 +130,7 @@ QmlImportScanResult runQmlImportScanner(const QString &directory, const QStringL const int childCount = array.count(); for (int c = 0; c < childCount; ++c) { const QJsonObject object = array.at(c).toObject(); - if (object.value(QStringLiteral("type")).toString() == QLatin1String("module")) { + if (object.value(QStringLiteral("type")).toString() == "module"_L1) { const QString path = object.value(QStringLiteral("path")).toString(); if (!path.isEmpty()) { QmlImportScanResult::Module module; |