diff options
author | Marc Mutz <marc.mutz@qt.io> | 2023-03-02 18:56:43 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@qt.io> | 2023-03-02 21:37:03 +0100 |
commit | 50389d4973544eb62e2c81308855e18159a5fc05 (patch) | |
tree | 525fe843409f2b03add08c3374c68d40ed025f04 /src/corelib/tools/qcryptographichash.cpp | |
parent | 590172ccc55bdcca91a311cbbc10e18e7dc06623 (diff) |
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 <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/tools/qcryptographichash.cpp')
-rw-r--r-- | src/corelib/tools/qcryptographichash.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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)); } |