diff --git a/include/wx/event.h b/include/wx/event.h index 6c83cb1726..225da47b42 100644 --- a/include/wx/event.h +++ b/include/wx/event.h @@ -1207,12 +1207,7 @@ public: virtual wxEvent *Clone() const { - wxThreadEvent* ev = new wxThreadEvent(*this); - - // make sure our string member (which uses COW, aka refcounting) is not - // shared by other wxString instances: - ev->SetString(GetString().c_str()); - return ev; + return new wxThreadEvent(*this); } // this is important to avoid that calling wxEventLoopBase::YieldFor thread events