pcbnew: Remove the last dlist from modules/pcbnew

This commit is contained in:
Seth Hillbrand
2019-06-01 20:55:32 -07:00
parent b244a940ef
commit 6a45446496
33 changed files with 80 additions and 182 deletions
+2 -2
View File
@@ -239,7 +239,7 @@ bool BRDITEMS_PLOTTER::PlotAllTextsModule( MODULE* aModule )
PlotTextModule( textModule, getColor( textLayer ) );
}
for( BOARD_ITEM* item = aModule->GraphicalItemsList().GetFirst(); item; item = item->Next() )
for( auto item : aModule->GraphicalItems() )
{
textModule = dyn_cast<TEXTE_MODULE*>( item );
@@ -432,7 +432,7 @@ void BRDITEMS_PLOTTER::Plot_Edges_Modules()
{
for( auto module : m_board->Modules() )
{
for( BOARD_ITEM* item = module->GraphicalItemsList().GetFirst(); item; item = item->Next() )
for( auto item : module->GraphicalItems() )
{
EDGE_MODULE* edge = dyn_cast<EDGE_MODULE*>( item );