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:
parent
b6fae509aa
commit
1895948bb9
@ -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,
|
// 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
|
// 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.
|
// 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
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user