fix operator=() (patch 1126195)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32191 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
07d0abae96
commit
8348e2cbf3
@ -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 ;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user