pcbnew: Code formatting
This commit is contained in:
parent
a4966adb67
commit
11b45002e1
|
@ -1204,24 +1204,23 @@ void NODE::releaseGarbage()
|
|||
|
||||
|
||||
void NODE::Commit( NODE* aNode )
|
||||
{
|
||||
{
|
||||
if( aNode->isRoot() )
|
||||
return;
|
||||
|
||||
for( ITEM* item : aNode->m_override )
|
||||
Remove( item );
|
||||
|
||||
for( INDEX::ITEM_SET::iterator i = aNode->m_index->begin();
|
||||
i != aNode->m_index->end(); ++i )
|
||||
for( auto i : *aNode->m_index )
|
||||
{
|
||||
(*i)->SetRank( -1 );
|
||||
(*i)->Unmark();
|
||||
Add( std::unique_ptr<ITEM>( *i ) );
|
||||
i->SetRank( -1 );
|
||||
i->Unmark();
|
||||
Add( std::unique_ptr<ITEM>( i ) );
|
||||
}
|
||||
|
||||
releaseChildren();
|
||||
releaseGarbage();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void NODE::KillChildren()
|
||||
|
|
Loading…
Reference in New Issue