Switch another loop to D_PAD iterator

This commit is contained in:
Simon Richter 2017-06-16 14:15:28 +02:00 committed by Tomasz Włostowski
parent a7759efc59
commit f324c7b16d
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ void GENDRILL_WRITER_BASE::buildHolesList( DRILL_LAYER_PAIR aLayerPair,
// add holes for thru hole pads
for( MODULE* module = m_pcb->m_Modules; module; module = module->Next() )
{
for( D_PAD* pad = module->Pads(); pad; pad = pad->Next() )
for( auto &pad : module->Pads() )
{
if( !m_merge_PTH_NPTH )
{