diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2021-07-07 07:40:08 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2021-07-28 17:50:09 +0200 |
commit | 767e00a2d719e57dd60c7ae8776e6291c220b34d (patch) | |
tree | ad7ca0067d723244ea4ec00539ee7b34d34149bb /src/corelib/compat/removed_api.cpp | |
parent | 3a72496b5c43484a94882440993b0ca0cb842d8a (diff) |
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 <lars.knoll@qt.io>
Diffstat (limited to 'src/corelib/compat/removed_api.cpp')
-rw-r--r-- | src/corelib/compat/removed_api.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
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 <qotherheader.h> // // implement removed functions from qotherheader.h |