From 3a8ac066e8b2a778f7c1fe5fd92ea6c19e400dc9 Mon Sep 17 00:00:00 2001 From: Volker Hilsheimer Date: Wed, 5 Mar 2025 13:08:00 +0100 Subject: [PATCH] Doc: fix documentation warning for QByteArray::fromCFData MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit \brief tags are not used for member function documentation. Explicitly set the prototype for qdoc instead, it doesn't seem to know what to do with the definition in an ObjectiveC file and produces link warnings. Change-Id: I89252e7b84586e987ed6d950d90142e916d8f1df Reviewed-by: Tor Arne Vestbø (cherry picked from commit 03efe9a21bb7a879ae51e3ad007dd2cdb8c6d981) Reviewed-by: Qt Cherry-pick Bot (cherry picked from commit cb8a6a5ea90edef666cd769c233f937147fbb436) --- src/corelib/kernel/qcore_foundation.mm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/corelib/kernel/qcore_foundation.mm b/src/corelib/kernel/qcore_foundation.mm index 9db1be44449..d99664311ef 100644 --- a/src/corelib/kernel/qcore_foundation.mm +++ b/src/corelib/kernel/qcore_foundation.mm @@ -26,7 +26,9 @@ QT_BEGIN_NAMESPACE /*! - \brief Constructs a new QByteArray containing a copy of the CFData \a data. + \fn QByteArray QByteArray::fromCFData(CFDataRef data) + + Constructs a new QByteArray containing a copy of the CFData \a data. \since 5.3 \ingroup platform-type-conversions