Fix a few accidental copies in loop iterators
This commit is contained in:
parent
150e2b8a19
commit
b73cc7db4a
|
@ -704,14 +704,14 @@ void CONNECTION_GRAPH::removeSubgraphs( std::set<CONNECTION_SUBGRAPH*>& aSubgrap
|
|||
std::sort( m_subgraphs.begin(), m_subgraphs.end() );
|
||||
std::set<int> codes_to_remove;
|
||||
|
||||
for( auto el : m_sheet_to_subgraphs_map )
|
||||
for( auto& el : m_sheet_to_subgraphs_map )
|
||||
{
|
||||
std::sort( el.second.begin(), el.second.end() );
|
||||
}
|
||||
|
||||
for( CONNECTION_SUBGRAPH* sg : aSubgraphs )
|
||||
{
|
||||
for( auto it : sg->m_bus_neighbors )
|
||||
for( auto& it : sg->m_bus_neighbors )
|
||||
{
|
||||
for( CONNECTION_SUBGRAPH* neighbor : it.second )
|
||||
{
|
||||
|
@ -730,7 +730,7 @@ void CONNECTION_GRAPH::removeSubgraphs( std::set<CONNECTION_SUBGRAPH*>& aSubgrap
|
|||
}
|
||||
}
|
||||
|
||||
for( auto it : sg->m_bus_parents )
|
||||
for( auto& it : sg->m_bus_parents )
|
||||
{
|
||||
for( CONNECTION_SUBGRAPH* parent : it.second )
|
||||
{
|
||||
|
|
|
@ -2177,7 +2177,7 @@ void ALTIUM_PCB::ConvertArcs6ToBoardItem( const AARC6& aElem, const int aPrimiti
|
|||
ConvertArcs6ToBoardItemOnLayer( aElem, klayer );
|
||||
}
|
||||
|
||||
for( const auto layerExpansionMask :
|
||||
for( const auto& layerExpansionMask :
|
||||
HelperGetSolderAndPasteMaskExpansions( ALTIUM_RECORD::ARC, aPrimitiveIndex, aElem.layer ) )
|
||||
{
|
||||
int width = aElem.width + ( layerExpansionMask.second * 2 );
|
||||
|
@ -2230,7 +2230,7 @@ void ALTIUM_PCB::ConvertArcs6ToFootprintItem( FOOTPRINT* aFootprint, const AARC6
|
|||
}
|
||||
}
|
||||
|
||||
for( const auto layerExpansionMask :
|
||||
for( const auto& layerExpansionMask :
|
||||
HelperGetSolderAndPasteMaskExpansions( ALTIUM_RECORD::ARC, aPrimitiveIndex, aElem.layer ) )
|
||||
{
|
||||
int width = aElem.width + ( layerExpansionMask.second * 2 );
|
||||
|
@ -2873,7 +2873,7 @@ void ALTIUM_PCB::ConvertTracks6ToBoardItem( const ATRACK6& aElem, const int aPri
|
|||
}
|
||||
}
|
||||
|
||||
for( const auto layerExpansionMask : HelperGetSolderAndPasteMaskExpansions(
|
||||
for( const auto& layerExpansionMask : HelperGetSolderAndPasteMaskExpansions(
|
||||
ALTIUM_RECORD::TRACK, aPrimitiveIndex, aElem.layer ) )
|
||||
{
|
||||
int width = aElem.width + ( layerExpansionMask.second * 2 );
|
||||
|
@ -2927,7 +2927,7 @@ void ALTIUM_PCB::ConvertTracks6ToFootprintItem( FOOTPRINT* aFootprint, const ATR
|
|||
}
|
||||
}
|
||||
|
||||
for( const auto layerExpansionMask : HelperGetSolderAndPasteMaskExpansions(
|
||||
for( const auto& layerExpansionMask : HelperGetSolderAndPasteMaskExpansions(
|
||||
ALTIUM_RECORD::TRACK, aPrimitiveIndex, aElem.layer ) )
|
||||
{
|
||||
int width = aElem.width + ( layerExpansionMask.second * 2 );
|
||||
|
|
|
@ -178,7 +178,7 @@ SHOVE::~SHOVE()
|
|||
{
|
||||
std::unordered_set<LINE*> alreadyDeleted;
|
||||
|
||||
for( auto it : m_rootLineHistory )
|
||||
for( auto& it : m_rootLineHistory )
|
||||
{
|
||||
auto it2 = alreadyDeleted.find( it.second );
|
||||
|
||||
|
|
Loading…
Reference in New Issue