QMessageAuthenticationCodePrivate: mark ctor explicit and noexcept

Both members, QCryptographicHashPrivate and QSmallByteArray, are
nothrow-constructible.

Change-Id: I59fa93db15906002f230eb12b8639a595ef559cf
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
(cherry picked from commit b8b84b9d917635b6b5e4632a152cd51a23894617)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Marc Mutz 2024-05-21 14:47:26 +02:00 committed by Qt Cherry-pick Bot
parent 6afec142a0
commit af91a1b778

View File

@ -1338,7 +1338,7 @@ static HashBlock xored(const HashBlock &block, quint8 val) noexcept
class QMessageAuthenticationCodePrivate
{
public:
QMessageAuthenticationCodePrivate(QCryptographicHash::Algorithm m)
explicit QMessageAuthenticationCodePrivate(QCryptographicHash::Algorithm m) noexcept
: messageHash(m)
{
}