git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66609
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// Assignment functions
void AssignAny(const wxAny& any)
{
// Assignment functions
void AssignAny(const wxAny& any)
{
- if ( m_type != wxAnyNullValueType )
- {
- // Must delete value - CopyBuffer() never does that
- m_type->DeleteValue(m_buffer);
- }
+ // Must delete value - CopyBuffer() never does that
+ m_type->DeleteValue(m_buffer);
wxAnyValueType* newType = any.m_type;
wxAnyValueType* newType = any.m_type;
- if ( m_type == wxAnyNullValueType || !newType->IsSameType(m_type) )
+ if ( !newType->IsSameType(m_type) )
m_type = newType;
newType->CopyBuffer(any.m_buffer, m_buffer);
m_type = newType;
newType->CopyBuffer(any.m_buffer, m_buffer);