summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qmessageauthenticationcode.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/tools/qmessageauthenticationcode.h')
-rw-r--r--src/corelib/tools/qmessageauthenticationcode.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/corelib/tools/qmessageauthenticationcode.h b/src/corelib/tools/qmessageauthenticationcode.h
index 6be86823327..a753f7045fe 100644
--- a/src/corelib/tools/qmessageauthenticationcode.h
+++ b/src/corelib/tools/qmessageauthenticationcode.h
@@ -16,8 +16,13 @@ class QIODevice;
class Q_CORE_EXPORT QMessageAuthenticationCode
{
public:
+#if QT_CORE_REMOVED_SINCE(6, 6)
explicit QMessageAuthenticationCode(QCryptographicHash::Algorithm method,
- const QByteArray &key = QByteArray());
+ const QByteArray &key);
+#endif
+ explicit QMessageAuthenticationCode(QCryptographicHash::Algorithm method,
+ QByteArrayView key = {});
+
QMessageAuthenticationCode(QMessageAuthenticationCode &&other) noexcept
: d{std::exchange(other.d, nullptr)} {}
~QMessageAuthenticationCode();
@@ -28,7 +33,10 @@ public:
void reset();
+#if QT_CORE_REMOVED_SINCE(6, 6)
void setKey(const QByteArray &key);
+#endif
+ void setKey(QByteArrayView key) noexcept;
void addData(const char *data, qsizetype length);
void addData(const QByteArray &data);