From aa83902af1ed6c5c4109214507052fe6d7f6cae8 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Sat, 24 Nov 2001 03:50:31 +0000 Subject: [PATCH] Give wxDynamicSashReparentEvent a copy ctor and a proper Clone so it can be used with AddPendingEvent. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12640 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- contrib/src/gizmos/dynamicsash.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/contrib/src/gizmos/dynamicsash.cpp b/contrib/src/gizmos/dynamicsash.cpp index 37d37bf15c..19b26de35a 100644 --- a/contrib/src/gizmos/dynamicsash.cpp +++ b/contrib/src/gizmos/dynamicsash.cpp @@ -83,8 +83,9 @@ class wxDynamicSashReparentEvent : public wxEvent { public: wxDynamicSashReparentEvent(); wxDynamicSashReparentEvent(wxObject *object); + wxDynamicSashReparentEvent(const wxDynamicSashReparentEvent& evt); - virtual wxEvent* Clone() const { return NULL; } + virtual wxEvent* Clone() const { return new wxDynamicSashReparentEvent(*this); } DECLARE_DYNAMIC_CLASS(wxDynamicSashReparentEvent); }; @@ -1239,6 +1240,11 @@ wxDynamicSashReparentEvent::wxDynamicSashReparentEvent(wxObject *object) { m_eventType = wxEVT_DYNAMIC_SASH_REPARENT; } +wxDynamicSashReparentEvent::wxDynamicSashReparentEvent(const wxDynamicSashReparentEvent& evt) + : wxEvent(evt) +{ +} + IMPLEMENT_DYNAMIC_CLASS(wxDynamicSashReparentEvent, wxEvent) /////////////////////////////////////////////////////////////////////////////