Silence a warning caused by Concatenation of char16_t and QByteArray

Pick-to: 6.5
Change-Id: I34a8ff5587dfa538594b1374cfc819012ce924c1
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
This commit is contained in:
Amir Masoud Abdol 2023-02-27 13:57:07 +01:00 committed by Thiago Macieira
parent b6fae509aa
commit 1895948bb9

View File

@ -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
}