From ceaa7d6341e666f6fe0d071ea34cad9877961a0e Mon Sep 17 00:00:00 2001 From: Sona Kurazyan Date: Wed, 13 Apr 2022 11:42:38 +0200 Subject: Plugins: 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: I7fadd3cf27ad099028d70f05956303e3af62c0f5 Reviewed-by: Marc Mutz --- .../compose/qcomposeplatforminputcontextmain.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/plugins/platforminputcontexts/compose') diff --git a/src/plugins/platforminputcontexts/compose/qcomposeplatforminputcontextmain.cpp b/src/plugins/platforminputcontexts/compose/qcomposeplatforminputcontextmain.cpp index d062d4fd6a..34aeaf540c 100644 --- a/src/plugins/platforminputcontexts/compose/qcomposeplatforminputcontextmain.cpp +++ b/src/plugins/platforminputcontexts/compose/qcomposeplatforminputcontextmain.cpp @@ -45,6 +45,8 @@ QT_BEGIN_NAMESPACE +using namespace Qt::StringLiterals; + class QComposePlatformInputContextPlugin : public QPlatformInputContextPlugin { Q_OBJECT @@ -58,8 +60,8 @@ QComposeInputContext *QComposePlatformInputContextPlugin::create(const QString & { Q_UNUSED(paramList); - if (system.compare(system, QLatin1String("compose"), Qt::CaseInsensitive) == 0 - || system.compare(system, QLatin1String("xim"), Qt::CaseInsensitive) == 0) + if (system.compare(system, "compose"_L1, Qt::CaseInsensitive) == 0 + || system.compare(system, "xim"_L1, Qt::CaseInsensitive) == 0) return new QComposeInputContext; return nullptr; } -- cgit v1.2.3