From 767e00a2d719e57dd60c7ae8776e6291c220b34d Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Wed, 7 Jul 2021 07:40:08 +0200 Subject: QUuid: port fromRfc4122() to QByteArrayView Remove the QByteArray overload from the API, but not the ABI. Adapt callers. Change-Id: I88aa09cbca3b89d0b249ce336ebe49c4b352c9e1 Reviewed-by: Lars Knoll --- src/corelib/compat/removed_api.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/corelib/compat/removed_api.cpp') diff --git a/src/corelib/compat/removed_api.cpp b/src/corelib/compat/removed_api.cpp index 9bd7944c41..d5d71ce75a 100644 --- a/src/corelib/compat/removed_api.cpp +++ b/src/corelib/compat/removed_api.cpp @@ -57,6 +57,13 @@ QByteArray QCryptographicHash::hash(const QByteArray &data, Algorithm method) return hash(QByteArrayView{data}, method); } +#include "quuid.h" + +QUuid QUuid::fromRfc4122(const QByteArray &bytes) +{ + return fromRfc4122(qToByteArrayViewIgnoringNull(bytes)); +} + // #include // // implement removed functions from qotherheader.h -- cgit v1.2.3