Formatting.

This commit is contained in:
Jeff Young 2021-08-18 22:16:17 +01:00
parent 815c2c69e7
commit e92efebb5f
2 changed files with 11 additions and 9 deletions

View File

@ -964,7 +964,7 @@ struct VIEW::DRAW_ITEM_VISITOR
[]( VIEW_ITEM* a, VIEW_ITEM* b ) -> bool []( VIEW_ITEM* a, VIEW_ITEM* b ) -> bool
{ {
return b->viewPrivData()->m_drawPriority < a->viewPrivData()->m_drawPriority; return b->viewPrivData()->m_drawPriority < a->viewPrivData()->m_drawPriority;
}); } );
} }
else else
{ {
@ -972,7 +972,7 @@ struct VIEW::DRAW_ITEM_VISITOR
[]( VIEW_ITEM* a, VIEW_ITEM* b ) -> bool []( VIEW_ITEM* a, VIEW_ITEM* b ) -> bool
{ {
return a->viewPrivData()->m_drawPriority < b->viewPrivData()->m_drawPriority; return a->viewPrivData()->m_drawPriority < b->viewPrivData()->m_drawPriority;
}); } );
} }
for( VIEW_ITEM* item : drawItems ) for( VIEW_ITEM* item : drawItems )

View File

@ -150,7 +150,9 @@ void SYMBOL_LIB::GetSymbols( std::vector<LIB_SYMBOL*>& aSymbols ) const
std::sort( aSymbols.begin(), aSymbols.end(), std::sort( aSymbols.begin(), aSymbols.end(),
[](LIB_SYMBOL *lhs, LIB_SYMBOL *rhs) -> bool [](LIB_SYMBOL *lhs, LIB_SYMBOL *rhs) -> bool
{ return lhs->GetName() < rhs->GetName(); }); {
return lhs->GetName() < rhs->GetName();
} );
} }