From af91a1b778ebb651e0989cc34626ce959a01b9a5 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Tue, 21 May 2024 14:47:26 +0200 Subject: [PATCH] QMessageAuthenticationCodePrivate: mark ctor explicit and noexcept Both members, QCryptographicHashPrivate and QSmallByteArray, are nothrow-constructible. Change-Id: I59fa93db15906002f230eb12b8639a595ef559cf Reviewed-by: Thiago Macieira (cherry picked from commit b8b84b9d917635b6b5e4632a152cd51a23894617) Reviewed-by: Qt Cherry-pick Bot --- src/corelib/tools/qcryptographichash.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/corelib/tools/qcryptographichash.cpp b/src/corelib/tools/qcryptographichash.cpp index 2e82a394eeb..8baec8ecc8b 100644 --- a/src/corelib/tools/qcryptographichash.cpp +++ b/src/corelib/tools/qcryptographichash.cpp @@ -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) { }