Remove a bunch of blind (and a few redundant) static_casts.

This commit is contained in:
Jeff Young
2023-07-13 14:14:45 +01:00
parent 181ae7f450
commit cf8294b5c2
16 changed files with 315 additions and 238 deletions
+4 -1
View File
@@ -82,7 +82,10 @@ void ARRAY_CREATOR::Invoke()
for ( int i = 0; i < m_selection.Size(); ++i )
{
BOARD_ITEM* item = static_cast<BOARD_ITEM*>( m_selection[ i ] );
BOARD_ITEM* item = dynamic_cast<BOARD_ITEM*>( m_selection[ i ] );
if( !item )
continue;
if( item->Type() == PCB_PAD_T && !m_isFootprintEditor )
{