diff --git a/src/corelib/tools/qcryptographichash.cpp b/src/corelib/tools/qcryptographichash.cpp index dbb4e0c0906..c1223ecd040 100644 --- a/src/corelib/tools/qcryptographichash.cpp +++ b/src/corelib/tools/qcryptographichash.cpp @@ -464,6 +464,7 @@ QCryptographicHash::Algorithm QCryptographicHash::algorithm() const noexcept void QCryptographicHashPrivate::reset() noexcept { + result.clear(); #ifdef USING_OPENSSL30 if (method == QCryptographicHash::Blake2b_160 || method == QCryptographicHash::Blake2b_256 || @@ -573,7 +574,6 @@ void QCryptographicHashPrivate::reset() noexcept #endif } #endif // !QT_CONFIG(opensslv30) - result.clear(); } #if QT_DEPRECATED_SINCE(6, 4)