X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/72636c1509db52918996658c17e5e948b64fa5dc..c699b4583b6047191ac326728654c6fe8920aa7b:/docs/latex/wx/sharedptr.tex

diff --git a/docs/latex/wx/sharedptr.tex b/docs/latex/wx/sharedptr.tex
index 840b54cba2..ac6400c13a 100644
--- a/docs/latex/wx/sharedptr.tex
+++ b/docs/latex/wx/sharedptr.tex
@@ -23,7 +23,8 @@ typedef T element_type
 
 \wxheading{See also}
 
-\helpref{wxScopedPtr}{wxscopedptrtemplate}, \helpref{wxWeakRef}{wxweakref}
+\helpref{wxScopedPtr}{wxscopedptrtemplate}, \helpref{wxWeakRef}{wxweakref},
+\helpref{wxObjectDataPtr}{wxobjectdataptr}
 
 
 \latexignore{\rtfignore{\wxheading{Members}}}
@@ -49,6 +50,15 @@ Destructor.
 
 Returns pointer to its object or NULL.
 
+\membersection{wxSharedPtr<T>::operator unspecified\_bool\_type}\label{wxsharedptroperatorbool}
+
+\constfunc{}{operator unspecified\_bool\_type}{\void}
+
+Conversion to a boolean expression (in a variant which is not 
+convertable to anything but a boolean expression). If this class
+contains a valid pointer it will return {\it true}, if it contains
+a NULL pointer it will return {\it false}.
+
 \membersection{wxSharedPtr<T>::operator*}\label{wxsharedptroperatorreft}
 
 \constfunc{T\&}{operator*}{\void}
@@ -67,7 +77,7 @@ Returns pointer to its object or NULL.
 \func{wxSharedPtr<T>\& operator}{operator=}{\param{const wxSharedPtr<T>\& }{tocopy}}
 
 Assignment operator. Releases any previously held pointer
-and creates a reference to same object as {\it topcopy}.
+and creates a reference to the same object as {\it topcopy}.
 
 \membersection{wxSharedPtr<T>::operator=}\label{wxsharedptroperatorassign2}
 
@@ -92,6 +102,6 @@ Returns the number of pointers pointing to its object.
 
 \func{void}{reset}{\param{T * }{ptr = NULL}}
 
-Reset pointer to {\it ptr}. Afterwards the caller is responsible
-for deleting the data contained in the pointer before.
+Reset pointer to {\it ptr}. If the reference count of the
+previously owned pointer was 1 it will be deleted.
 
