From 01b14f431bd49e01b0389517c1c8d97768b3c520 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Morten=20S=C3=B8rvig?= Date: Tue, 14 Feb 2023 07:53:51 +0100 Subject: [PATCH] wasm: fix to/from Uint8Array documentaton MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Functions generally don't have a \brief section. The Uint8Array conversion functions were introduced in 6.5. Change-Id: I1d366d7506327128f7eedd71310e570ade6fc66c Reviewed-by: MikoĊ‚aj Boc (cherry picked from commit 062b919047a97f20499785cedbf8acc98548efa2) Reviewed-by: Qt Cherry-pick Bot --- src/corelib/text/qbytearray.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/corelib/text/qbytearray.cpp b/src/corelib/text/qbytearray.cpp index 736f6fb1927..6227f773a9c 100644 --- a/src/corelib/text/qbytearray.cpp +++ b/src/corelib/text/qbytearray.cpp @@ -4846,7 +4846,7 @@ QByteArray QByteArray::toPercentEncoding(const QByteArray &exclude, const QByteA #if defined(Q_OS_WASM) || defined(Q_QDOC) /*! - \brief Constructs a new QByteArray containing a copy of the Uint8Array \a uint8array. + Constructs a new QByteArray containing a copy of the Uint8Array \a uint8array. This function transfers data from a JavaScript data buffer - which is not addressable from C++ code - to heap memory owned by a QByteArray. @@ -4862,7 +4862,7 @@ QByteArray QByteArray::toPercentEncoding(const QByteArray &exclude, const QByteA exceeds the maximum capacity of QByteArray, or if the \a uint8array argument is not of the Uint8Array type. - \since 6.4 + \since 6.5 \ingroup platform-type-conversions \sa toUint8Array() @@ -4874,7 +4874,7 @@ QByteArray QByteArray::fromUint8Array(emscripten::val uint8array) } /*! - \brief Creates a Uint8Array from a QByteArray + Creates a Uint8Array from a QByteArray. This function transfers data from heap memory owned by a QByteArray to a JavaScript data buffer. The function allocates and copies into an @@ -4885,7 +4885,7 @@ QByteArray QByteArray::fromUint8Array(emscripten::val uint8array) \snippet code/src_corelib_text_qbytearray.cpp 56 - \since 6.4 + \since 6.5 \ingroup platform-type-conversions \sa toUint8Array()