From 53c0dad37a0210a915f47d299b1a141a3c774f6d Mon Sep 17 00:00:00 2001 From: Lorn Potter Date: Tue, 13 Aug 2024 18:00:34 +1000 Subject: [PATCH] wasm: fix example code correct useage of toEcmaUint8Array() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pick-to: 6.7 Change-Id: Id20ec88df500cb7209ce294fdee28e0244f1d580 Reviewed-by: Morten Johan Sørvig (cherry picked from commit b9ee93fa56a6313bd7d6ea9dcf479783605978b1) Reviewed-by: Qt Cherry-pick Bot --- src/corelib/doc/snippets/code/src_corelib_text_qbytearray.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/corelib/doc/snippets/code/src_corelib_text_qbytearray.cpp b/src/corelib/doc/snippets/code/src_corelib_text_qbytearray.cpp index a4fecc41f9..ff51d27d05 100644 --- a/src/corelib/doc/snippets/code/src_corelib_text_qbytearray.cpp +++ b/src/corelib/doc/snippets/code/src_corelib_text_qbytearray.cpp @@ -469,7 +469,7 @@ QByteArray byteArray = QByteArray::fromEcmaUint8Array(uint8array); //! [56] QByteArray byteArray = "test"; -emscripten::val uint8array = QByteArray::toEcmaUint8Array(byteArray); +emscripten::val uint8array = byteArray.toEcmaUint8Array(); //! [56] //! [57]