]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/weakref.h
remove extra semicolons, correct virtual access
[wxWidgets.git] / include / wx / weakref.h
index d72ab4ccbc91100c5261112c2d7dbe4aaf17bf3b..6691b60d6d502e53f8acceda534d0e8daeef569d 100644 (file)
@@ -200,6 +200,12 @@ public:
         Assign(pobj);
     }
 
+    // We need this copy ctor, since otherwise a default compiler (binary) copy happens
+    wxWeakRef(const wxWeakRef<T>& wr)
+    {
+        Assign(wr.get());
+    }
+    
     template <class TDerived>
     wxWeakRef<T>& operator=(TDerived* pobj)
     {