Remove structured binding from v6 commit

C++17 is only for the master branch
This commit is contained in:
Seth Hillbrand 2022-11-25 10:43:10 -08:00
parent f6ca98061c
commit 3b3e86b968
1 changed files with 6 additions and 4 deletions

View File

@ -2968,8 +2968,10 @@ bool CONNECTION_GRAPH::ercCheckLabels( const CONNECTION_SUBGRAPH* aSubgraph )
if( pinCount > 1 )
return true;
for( auto& [type, label_vec] : label_map )
for( auto label_el : label_map )
{
KICAD_T type = label_el.first;
std::vector<SCH_TEXT*>& label_vec = label_el.second;
switch( type )
{
@ -2989,11 +2991,11 @@ bool CONNECTION_GRAPH::ercCheckLabels( const CONNECTION_SUBGRAPH* aSubgraph )
{
int allPins = pinCount;
auto it = m_net_name_to_subgraphs_map.find( netName );
auto net_it = m_net_name_to_subgraphs_map.find( netName );
if( it != m_net_name_to_subgraphs_map.end() )
if( net_it != m_net_name_to_subgraphs_map.end() )
{
for( const CONNECTION_SUBGRAPH* neighbor : it->second )
for( const CONNECTION_SUBGRAPH* neighbor : net_it->second )
{
if( neighbor == aSubgraph )
continue;