diff --git a/src/corelib/tools/qcryptographichash.cpp b/src/corelib/tools/qcryptographichash.cpp index ef7f43a38c0..39a7e0824a1 100644 --- a/src/corelib/tools/qcryptographichash.cpp +++ b/src/corelib/tools/qcryptographichash.cpp @@ -220,8 +220,6 @@ public: QByteArrayView resultView() const noexcept { return result.toByteArrayView(); } static bool supportsAlgorithm(QCryptographicHash::Algorithm method); - const QCryptographicHash::Algorithm method; - #ifdef USING_OPENSSL30 struct EVP_MD_CTX_deleter { void operator()(EVP_MD_CTX *ctx) const noexcept { @@ -279,6 +277,8 @@ public: QBasicMutex finalizeMutex; SmallByteArray result; + const QCryptographicHash::Algorithm method; + #if !defined(QT_CRYPTOGRAPHICHASH_ONLY_SHA1) && !defined(USING_OPENSSL30) enum class Sha3Variant {