Add implicit conversion, remove conversion to bool

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51244 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling 2008-01-16 12:47:16 +00:00
parent a9c98d7dd3
commit e9cec36348

View File

@ -17,7 +17,6 @@ wxWeakRef<T> 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<wxWindow> 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<T>::operator unspecified\_bool\_type}\label{wxweakrefoperatorbool}
\membersection{wxWeakRef<T>::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<T>::operator*}\label{wxweakrefoperatorreft}