QmlJS: Fix compile with Qt6.2

Change-Id: I3f386e1a51f821f55a0eb6df929ebdd7ee3fa9f7
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Stenger
2023-06-20 12:59:19 +02:00
parent b6961c38b6
commit ca8066251e

View File

@@ -370,7 +370,7 @@ QByteArray LibraryInfo::calculateFingerprint() const
{
QCryptographicHash hash(QCryptographicHash::Sha1);
auto addData = [&hash](auto p, size_t len) {
hash.addData(QByteArrayView(reinterpret_cast<const char *>(p), len));
hash.addData(reinterpret_cast<const char *>(p), len);
};
addData(&_status, sizeof(_status));