]> git.saurik.com Git - wxWidgets.git/blobdiff - interface/wx/weakref.h
Fix vararg type checking to accept ints for %c.
[wxWidgets.git] / interface / wx / weakref.h
index d208d48804e54797023b1de727ffe6bd6b62a30d..d6eb9fe4d89dbc27cb82c053c4009a2e9611f567 100644 (file)
@@ -8,7 +8,6 @@
 
 
 /**
-
     wxWeakRefDynamic<T> is a template class for weak references that is used in
     the same way as wxWeakRef<T>. The only difference is that wxWeakRefDynamic
     defaults to using @c dynamic_cast for establishing the object reference
@@ -28,7 +27,7 @@
     For API documentation, see: wxWeakRef<T>.
 
     @tparam T
-        @todo docme
+        The type to which the smart pointer points to.
 
     @nolibrary
     @category{smartpointers}
@@ -92,7 +91,7 @@ public:
     @endcode
 
     @tparam T
-        @todo docme
+        The type to which the smart pointer points to.
 
     @nolibrary
     @category{smartpointers}
@@ -103,6 +102,9 @@ template<typename T>
 class wxWeakRef<T> : public wxTrackerNode
 {
 public:
+    /// Type of the element stored by this reference.
+    typedef T element_type;
+
     /**
         Constructor. The weak reference is initialized to @e pobj.
     */
@@ -116,7 +118,7 @@ public:
     /**
         Destructor.
     */
-    ~wxWeakRef();
+    virtual ~wxWeakRef();
 
     /**
         Called when the tracked object is destroyed. Be default sets