Use static cast in sch_view since type has been checked

This commit is contained in:
Ian McInerney 2020-01-12 19:46:17 +00:00
parent b445ce6632
commit cd0d92956b
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ void SCH_VIEW::DisplayComponent( LIB_PART* aPart )
if( item.Type() != LIB_FIELD_T ) if( item.Type() != LIB_FIELD_T )
continue; continue;
LIB_FIELD* field = dynamic_cast< LIB_FIELD* >( &item ); LIB_FIELD* field = static_cast< LIB_FIELD* >( &item );
if( field->GetId() < MANDATORY_FIELDS ) if( field->GetId() < MANDATORY_FIELDS )
Add( &item ); Add( &item );