From ea6fb84351480513679284d2f3e8562d48132d5c Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Mon, 10 Oct 2022 11:15:19 +0100 Subject: [PATCH] Formatting. --- pcbnew/router/pns_line.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/pcbnew/router/pns_line.cpp b/pcbnew/router/pns_line.cpp index 92c5c39d89..34e1e43b31 100644 --- a/pcbnew/router/pns_line.cpp +++ b/pcbnew/router/pns_line.cpp @@ -1040,12 +1040,13 @@ int LINE::Rank() const { int min_rank = INT_MAX; - if( IsLinked() ) { - for( auto s : m_links ) - { - min_rank = std::min( min_rank, s->Rank() ); - } - } else { + if( IsLinked() ) + { + for( const LINKED_ITEM* item : m_links ) + min_rank = std::min( min_rank, item->Rank() ); + } + else + { min_rank = m_rank; }