netlist: avoid cast to different iterator
This ensures the list iteration matches the container
This commit is contained in:
parent
50b7027b22
commit
2b55f8a1aa
|
@ -371,9 +371,8 @@ XNODE* NETLIST_EXPORTER_GENERIC::makeLibParts()
|
|||
|
||||
m_libraries.clear();
|
||||
|
||||
for( std::set<LIB_PART*>::iterator it = m_LibParts.begin(); it!=m_LibParts.end(); ++it )
|
||||
for( auto lcomp : m_LibParts )
|
||||
{
|
||||
LIB_PART* lcomp = *it;
|
||||
wxString libNickname = lcomp->GetLibId().GetLibNickname();;
|
||||
|
||||
// The library nickname will be empty if the cache library is used.
|
||||
|
|
Loading…
Reference in New Issue