From d08033292cb9d42a472ce6129a2b214f2d7172a1 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Sat, 28 Jul 2018 15:28:45 +0200 Subject: [PATCH] correcting doc --- include/wx/osx/core/cfdataref.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/include/wx/osx/core/cfdataref.h b/include/wx/osx/core/cfdataref.h index 6c604cd069..54e7498243 100644 --- a/include/wx/osx/core/cfdataref.h +++ b/include/wx/osx/core/cfdataref.h @@ -34,10 +34,9 @@ public: typedef wxCFRef super_type; /*! @method wxCFDataRef - @abstract Assumes ownership of p and creates a reference to it. - @templatefield otherType Any type. - @param p The raw pointer to assume ownership of. May be NULL. - @discussion Like shared_ptr, it is assumed that the caller has a strong reference to p and intends + @abstract Assumes ownership of r and creates a reference to it. + @param r The data reference to assume ownership of. May be NULL. + @discussion Like shared_ptr, it is assumed that the caller has a strong reference to r and intends to transfer ownership of that reference to this ref holder. If the object comes from a Create or Copy method then this is the correct behaviour. If the object comes from a Get method then you must CFRetain it yourself before passing it to this constructor.