netlist: avoid cast to different iterator

This ensures the list iteration matches the container
This commit is contained in:
Seth Hillbrand 2019-08-05 20:02:26 -07:00
parent 50b7027b22
commit 2b55f8a1aa
1 changed files with 1 additions and 2 deletions

View File

@ -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.