Formatting.

This commit is contained in:
Jeff Young 2022-10-10 11:15:19 +01:00
parent 6bc00eabaf
commit ea6fb84351
1 changed files with 7 additions and 6 deletions

View File

@ -1040,12 +1040,13 @@ int LINE::Rank() const
{ {
int min_rank = INT_MAX; int min_rank = INT_MAX;
if( IsLinked() ) { if( IsLinked() )
for( auto s : m_links ) {
{ for( const LINKED_ITEM* item : m_links )
min_rank = std::min( min_rank, s->Rank() ); min_rank = std::min( min_rank, item->Rank() );
} }
} else { else
{
min_rank = m_rank; min_rank = m_rank;
} }