X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/432968bf3d888547cc88478199cdd9da37109be8..5b12cceef870243338e39d4b15536008491de474:/include/wx/xti.h diff --git a/include/wx/xti.h b/include/wx/xti.h index 3bf18e703d..87da89c741 100644 --- a/include/wx/xti.h +++ b/include/wx/xti.h @@ -92,7 +92,7 @@ class WXDLLIMPEXP_BASE wxObjectRefData; class WXDLLIMPEXP_BASE wxEvent; class WXDLLIMPEXP_BASE wxEvtHandler; -typedef void (wxEvtHandler::*wxObjectEventFunction)(wxEvent&); +typedef void (wxObject::*wxObjectEventFunction)(wxEvent&); #if wxUSE_FUNC_TEMPLATE_POINTER # define wxTO_STRING(type) wxToStringConverter @@ -668,7 +668,8 @@ public : wxxVariant& operator=(const wxxVariant &d) { - m_data = d.m_data->Clone() ; + delete m_data; + m_data = d.m_data ? d.m_data->Clone() : NULL ; m_name = d.m_name ; return *this ; }