From cb0610f71d882d81b73ddd3d1e36d6435dfdca1b Mon Sep 17 00:00:00 2001 From: "Gustavo J. A. M. Carneiro" Date: Sat, 19 May 2007 14:37:06 +0100 Subject: [PATCH] Correct the Ptr (T *ptr) documentation. --- src/core/ptr.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/core/ptr.h b/src/core/ptr.h index 0c9efc07e..ef29af706 100644 --- a/src/core/ptr.h +++ b/src/core/ptr.h @@ -73,11 +73,12 @@ public: /** * \param ptr raw pointer to manage * - * Create a smart pointer which points to the - * input raw pointer. This method takes ownershipt - * of the input raw pointer. That is, the smart pointer - * becomes responsible for calling delete on the - * raw pointer when needed. + * Create a smart pointer which points to the object pointed to by + * the input raw pointer ptr. This method creates its own reference + * to the pointed object. The caller is responsible for Unref()'ing + * its own reference, and the smart pointer will eventually do the + * same, so that object is deleted if no more references to it + * remain. */ Ptr (T *ptr); Ptr (Ptr const&o);