From e9cec36348072df16d6cd649f82a92c86ba3b662 Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Wed, 16 Jan 2008 12:47:16 +0000 Subject: [PATCH] Add implicit conversion, remove conversion to bool git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51244 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- docs/latex/wx/weakref.tex | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/docs/latex/wx/weakref.tex b/docs/latex/wx/weakref.tex index 5464e81f6d..ad01dcf198 100644 --- a/docs/latex/wx/weakref.tex +++ b/docs/latex/wx/weakref.tex @@ -17,7 +17,6 @@ wxWeakRef is a small object and the mechanism behind it is fast \wxheading{Example} \begin{verbatim} - wxWindow *parent = /* Get parent window from somewhere */; wxWindow *wnd = new wxWindow( parent, wxID_ANY, "wxWindow" ); wxWeakRef wr = wnd; wxWindowRef wr2 = wnd; // Same as above, but using a typedef @@ -97,15 +96,12 @@ Destructor. Returns pointer to the tracked object or NULL. -\membersection{wxWeakRef::operator unspecified\_bool\_type}\label{wxweakrefoperatorbool} +\membersection{wxWeakRef::operator T*}\label{wxweakrefoperatorconvt} -\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}. +\constfunc{T*}{operator*}{\void} +Implicit conversion to T*. Returns pointer to the tracked +object or NULL. \membersection{wxWeakRef::operator*}\label{wxweakrefoperatorreft} -- 2.45.2