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}