From dff0d5133f3171ec6be0ded0a997d8b1bfeb90f9 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Wed, 22 Feb 2023 15:34:17 +0100 Subject: [PATCH] QMessageAuthenticationCode: make Private::method member const MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Like in QCryptographicHash, it's never re-set, so, like there, make it immutable. Pick-to: 6.5 Change-Id: I88f3dc15febffa8950256aedc5e8d1385fc86ddd Reviewed-by: Thiago Macieira Reviewed-by: MÃ¥rten Nordheim --- 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 c1a4220ec19..0e57154c573 100644 --- a/src/corelib/tools/qcryptographichash.cpp +++ b/src/corelib/tools/qcryptographichash.cpp @@ -991,7 +991,7 @@ public: QByteArray result; QBasicMutex finalizeMutex; QCryptographicHash messageHash; - QCryptographicHash::Algorithm method; + const QCryptographicHash::Algorithm method; bool messageHashInited; void initMessageHash();