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:
parent
aeba5c005f
commit
3ab9db6ff1
|
@ -1166,7 +1166,7 @@ void PNS_KICAD_IFACE::SyncWorld( PNS::NODE *aWorld )
|
||||||
}
|
}
|
||||||
else if( mgitem->Type() == PCB_MODULE_TEXT_T )
|
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() );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue