use qt6 in arch builds (#4691)

* use qt6 in arch builds

* fix 6.4.0 deprecations
This commit is contained in:
ebbit1q 2022-10-31 23:26:13 +01:00 committed by GitHub
parent dec2a252fa
commit 3d4858b840
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 6 deletions

View file

@ -167,7 +167,11 @@ bool QxtHmac::verify(const QByteArray& otherInner)
void QxtHmac::addData(const char* data, int length)
{
Q_ASSERT(qxt_d().opad.size());
#if (QT_VERSION >= QT_VERSION_CHECK(6, 3, 0))
qxt_d().ihash->addData(QByteArrayView(data, length));
#else
qxt_d().ihash->addData(data, length);
#endif
qxt_d().result.clear();
}