Formatting.
This commit is contained in:
parent
815c2c69e7
commit
e92efebb5f
|
@ -961,18 +961,18 @@ struct VIEW::DRAW_ITEM_VISITOR
|
|||
if( reverseDrawOrder )
|
||||
{
|
||||
std::sort( drawItems.begin(), drawItems.end(),
|
||||
[]( VIEW_ITEM* a, VIEW_ITEM* b ) -> bool
|
||||
{
|
||||
return b->viewPrivData()->m_drawPriority < a->viewPrivData()->m_drawPriority;
|
||||
});
|
||||
[]( VIEW_ITEM* a, VIEW_ITEM* b ) -> bool
|
||||
{
|
||||
return b->viewPrivData()->m_drawPriority < a->viewPrivData()->m_drawPriority;
|
||||
} );
|
||||
}
|
||||
else
|
||||
{
|
||||
std::sort( drawItems.begin(), drawItems.end(),
|
||||
[]( VIEW_ITEM* a, VIEW_ITEM* b ) -> bool
|
||||
{
|
||||
return a->viewPrivData()->m_drawPriority < b->viewPrivData()->m_drawPriority;
|
||||
});
|
||||
[]( VIEW_ITEM* a, VIEW_ITEM* b ) -> bool
|
||||
{
|
||||
return a->viewPrivData()->m_drawPriority < b->viewPrivData()->m_drawPriority;
|
||||
} );
|
||||
}
|
||||
|
||||
for( VIEW_ITEM* item : drawItems )
|
||||
|
|
|
@ -150,7 +150,9 @@ void SYMBOL_LIB::GetSymbols( std::vector<LIB_SYMBOL*>& aSymbols ) const
|
|||
|
||||
std::sort( aSymbols.begin(), aSymbols.end(),
|
||||
[](LIB_SYMBOL *lhs, LIB_SYMBOL *rhs) -> bool
|
||||
{ return lhs->GetName() < rhs->GetName(); });
|
||||
{
|
||||
return lhs->GetName() < rhs->GetName();
|
||||
} );
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue