]> git.saurik.com Git - wxWidgets.git/commitdiff
Add implicit conversion, remove conversion to bool
authorRobert Roebling <robert@roebling.de>
Wed, 16 Jan 2008 12:47:16 +0000 (12:47 +0000)
committerRobert Roebling <robert@roebling.de>
Wed, 16 Jan 2008 12:47:16 +0000 (12:47 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51244 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/latex/wx/weakref.tex

index 5464e81f6db59f11d84603f638c7a96bf8a348b9..ad01dcf198fe12c86adac69ffeb0575699fc2938 100644 (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}