Remove assert on ReplaceProperty

We can't guarantee initialization order for these, so it results in false warnings
This commit is contained in:
Jon Evans 2022-12-17 14:05:50 -05:00
parent e97bdeda47
commit 13925074cb
1 changed files with 0 additions and 1 deletions

View File

@ -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 );