Hide DLISTs behind iterators, first step towards refactoring the storage model

This commit is contained in:
Tomasz Włostowski
2017-06-23 11:12:36 +02:00
parent 4bdac4de70
commit 08314082db
19 changed files with 100 additions and 25 deletions
+1 -1
View File
@@ -266,7 +266,7 @@ bool BRDITEMS_PLOTTER::PlotAllTextsModule( MODULE* aModule )
// plot items like text and graphics, but not tracks and module
void BRDITEMS_PLOTTER::PlotBoardGraphicItems()
{
for( BOARD_ITEM* item = m_board->m_Drawings; item; item = item->Next() )
for( auto item : m_board->Drawings() )
{
switch( item->Type() )
{