Update cast in PNS since we are guaranteed to have text

We are guaranteed that the BOARD_ITEM will be a TEXTE_MODULE
since we have tested its type already, so just use a static_cast
to remove the overhead.
This commit is contained in:
Ian McInerney 2020-01-13 19:34:58 +00:00
parent aeba5c005f
commit 3ab9db6ff1
1 changed files with 1 additions and 1 deletions

View File

@ -1166,7 +1166,7 @@ void PNS_KICAD_IFACE::SyncWorld( PNS::NODE *aWorld )
}
else if( mgitem->Type() == PCB_MODULE_TEXT_T )
{
syncTextItem( aWorld, dynamic_cast<TEXTE_MODULE*>( mgitem ), mgitem->GetLayer() );
syncTextItem( aWorld, static_cast<TEXTE_MODULE*>( mgitem ), mgitem->GetLayer() );
}
}
}