reverting AssignAny fix, not needed if wxAny is not instantiated during static globals init
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66609 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1006,16 +1006,13 @@ public:
|
||||
private:
|
||||
// Assignment functions
|
||||
void AssignAny(const wxAny& any)
|
||||
{
|
||||
if ( m_type != wxAnyNullValueType )
|
||||
{
|
||||
// Must delete value - CopyBuffer() never does that
|
||||
m_type->DeleteValue(m_buffer);
|
||||
}
|
||||
|
||||
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);
|
||||
|
Reference in New Issue
Block a user