diff --git a/src/corelib/tools/qcryptographichash.cpp b/src/corelib/tools/qcryptographichash.cpp index 8f616e966d..ccf34312de 100644 --- a/src/corelib/tools/qcryptographichash.cpp +++ b/src/corelib/tools/qcryptographichash.cpp @@ -1307,7 +1307,7 @@ QMessageAuthenticationCode::~QMessageAuthenticationCode() /*! Resets message data. Calling this method doesn't affect the key. */ -void QMessageAuthenticationCode::reset() +void QMessageAuthenticationCode::reset() noexcept { d->result.clear(); d->messageHash.reset(); diff --git a/src/corelib/tools/qmessageauthenticationcode.h b/src/corelib/tools/qmessageauthenticationcode.h index 9e7f9dfbdb..4e88138763 100644 --- a/src/corelib/tools/qmessageauthenticationcode.h +++ b/src/corelib/tools/qmessageauthenticationcode.h @@ -31,7 +31,7 @@ public: void swap(QMessageAuthenticationCode &other) noexcept { qt_ptr_swap(d, other.d); } - void reset(); + void reset() noexcept; #if QT_CORE_REMOVED_SINCE(6, 6) void setKey(const QByteArray &key);