]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/event.h
Move a couple standard virtuals to protected sections so they can be overridden in...
[wxWidgets.git] / include / wx / event.h
index 8303647c39b9f2d52d2a93404b3f988c59bbf157..283a0f56cd4d6e6e9958a24beff68f158e9e34b9 100644 (file)
@@ -1244,7 +1244,7 @@ public:
     {
         // make sure our string member (which uses COW, aka refcounting) is not
         // shared by other wxString instances:
-        SetString(GetString().c_str());
+        SetString(GetString().Clone());
     }
 
     virtual wxEvent *Clone() const