Improve comments.

This commit is contained in:
Jeff Young 2021-11-02 18:32:48 +00:00
parent eaf10a04dd
commit 522359ccbf
1 changed files with 2 additions and 2 deletions

View File

@ -159,10 +159,10 @@ bool BOARD_ITEM::ptr_cmp::operator() ( const BOARD_ITEM* a, const BOARD_ITEM* b
if( a->GetLayer() != b->GetLayer() )
return a->GetLayer() < b->GetLayer();
if( a->m_Uuid != b->m_Uuid ) // should be always the case for valid boards
if( a->m_Uuid != b->m_Uuid ) // UUIDs *should* always be unique (for valid boards anyway)
return a->m_Uuid < b->m_Uuid;
return a < b;
return a < b; // But just in case; ptrs are guaranteed to be different
}