Browse Source

Remove assert on ReplaceProperty

We can't guarantee initialization order for these, so it results in false warnings
7.0
Jon Evans 3 years ago
parent
commit
13925074cb
  1. 1
      common/properties/property_mgr.cpp

1
common/properties/property_mgr.cpp

@ -153,7 +153,6 @@ void PROPERTY_MANAGER::AddProperty( PROPERTY_BASE* aProperty, const wxString& aG
void PROPERTY_MANAGER::ReplaceProperty( size_t aBase, const wxString& aName, PROPERTY_BASE* aNew,
const wxString& aGroup )
{
wxASSERT( aBase == aNew->BaseHash() || IsOfType( aNew->OwnerHash(), aBase ) );
CLASS_DESC& classDesc = getClass( aNew->OwnerHash() );
classDesc.m_replaced.insert( std::make_pair( aBase, aName ) );
AddProperty( aNew, aGroup );

Loading…
Cancel
Save