From 50389d4973544eb62e2c81308855e18159a5fc05 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Thu, 2 Mar 2023 18:56:43 +0100 Subject: Mark QMessageAuthenticationCodePrivate::initMessageHash() as noexcept It only calls other noexcept functions: - QCryptographicHash::addData(QByteArrayView) - xored() Pick-to: 6.5 Task-number: QTBUG-111688 Change-Id: Idd8c485a48b8243b359638086c373288c1c6f96d Reviewed-by: Thiago Macieira --- src/corelib/tools/qcryptographichash.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/corelib/tools/qcryptographichash.cpp') diff --git a/src/corelib/tools/qcryptographichash.cpp b/src/corelib/tools/qcryptographichash.cpp index 2d7f6664ec..3986576c77 100644 --- a/src/corelib/tools/qcryptographichash.cpp +++ b/src/corelib/tools/qcryptographichash.cpp @@ -1157,7 +1157,7 @@ public: const QCryptographicHash::Algorithm method; void setKey(QByteArrayView k) noexcept; - void initMessageHash(); + void initMessageHash() noexcept; void finalize(); // when not called from the static hash() function, this function needs to be @@ -1208,7 +1208,7 @@ void QMessageAuthenticationCodePrivate::setKey(QByteArrayView newKey) noexcept This function assumes that messageHash is in its initial state (reset() has been called). */ -void QMessageAuthenticationCodePrivate::initMessageHash() +void QMessageAuthenticationCodePrivate::initMessageHash() noexcept { messageHash.addData(xored(key, 0x36)); } -- cgit v1.2.3