From 68b0fca6eb87f0b32f92122f37e31b0ff488592b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kai=20K=C3=B6hne?= Date: Mon, 27 Nov 2023 16:11:54 +0100 Subject: [PATCH] Doc: Settle on 'function' instead of 'method' in QMAC documentation Function is the more popular term in the documentation. Method is also a tad confusing, because QCryptographicHash calls the algorithm 'method'. Change-Id: I9922f837b04311a4ef45e1c6de6b8e12a32e4f1e Reviewed-by: Venugopal Shivashankar (cherry picked from commit b831693365b37cab0c4534776ac2f431283c6b2b) Reviewed-by: Qt Cherry-pick Bot --- src/corelib/tools/qcryptographichash.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/corelib/tools/qcryptographichash.cpp b/src/corelib/tools/qcryptographichash.cpp index 3096ba3347e..8b29a2b8409 100644 --- a/src/corelib/tools/qcryptographichash.cpp +++ b/src/corelib/tools/qcryptographichash.cpp @@ -1507,7 +1507,7 @@ QMessageAuthenticationCode::~QMessageAuthenticationCode() */ /*! - Resets message data. Calling this method doesn't affect the key. + Resets message data. Calling this function doesn't affect the key. */ void QMessageAuthenticationCode::reset() noexcept { @@ -1516,9 +1516,9 @@ void QMessageAuthenticationCode::reset() noexcept } /*! - Sets secret \a key. Calling this method automatically resets the object state. + Sets secret \a key. Calling this function automatically resets the object state. - For optimal performance, call this method only to \e change the active key, + For optimal performance, call this function only to \e change the active key, not to set an \e initial key, as in \code