Coverity fixes.

This commit is contained in:
Jeff Young
2025-05-25 20:01:18 +01:00
parent 1e45ca3e65
commit 327cca9de5
25 changed files with 66 additions and 57 deletions
+2
View File
@@ -237,6 +237,8 @@ void SCH_COMMIT::pushSchEdit( const wxString& aMessage, int aCommitFlags )
SCH_ITEM* schItem = dynamic_cast<SCH_ITEM*>( ent.m_item );
int changeType = ent.m_type & CHT_TYPE;
wxCHECK2( schItem, continue );
if( changeType == CHT_REMOVE && schItem->GetParentGroup() )
Modify( schItem->GetParentGroup()->AsEdaItem() );
}