From 1895948bb9c2d7afa54d258b582d86ca1e583068 Mon Sep 17 00:00:00 2001 From: Amir Masoud Abdol Date: Mon, 27 Feb 2023 13:57:07 +0100 Subject: [PATCH] Silence a warning caused by Concatenation of char16_t and QByteArray MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pick-to: 6.5 Change-Id: I34a8ff5587dfa538594b1374cfc819012ce924c1 Reviewed-by: MÃ¥rten Nordheim --- src/corelib/ipc/qtipccommon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/corelib/ipc/qtipccommon.cpp b/src/corelib/ipc/qtipccommon.cpp index df525682d90..46a47771047 100644 --- a/src/corelib/ipc/qtipccommon.cpp +++ b/src/corelib/ipc/qtipccommon.cpp @@ -117,7 +117,7 @@ QString QtIpcCommon::legacyPlatformSafeKey(const QString &key, QtIpcCommon::IpcT // so we can't use the logic below of combining the prefix, key, and a hash, // to ensure a unique and valid name. Instead we use the first part of the // hash, which should still long enough to avoid collisions in practice. - return u'/' + hex.left(SHM_NAME_MAX - 1); + return u'/' + QLatin1StringView(hex).left(SHM_NAME_MAX - 1); #endif }