Code formatting

This commit is contained in:
Maciej Suminski 2017-01-24 16:14:38 +01:00
parent 80956ef1e6
commit fc122834c2
2 changed files with 11 additions and 10 deletions

View File

@ -68,7 +68,6 @@ ROUTER::ROUTER()
{
theRouter = this;
m_state = IDLE;
m_mode = PNS_MODE_ROUTE_SINGLE;
@ -94,6 +93,7 @@ ROUTER::~ROUTER()
theRouter = nullptr;
}
void ROUTER::SyncWorld()
{
ClearWorld();
@ -126,10 +126,9 @@ const ITEM_SET ROUTER::QueryHoverItems( const VECTOR2I& aP )
if( m_state == IDLE )
return m_world->HitTest( aP );
else
{
return m_placer->CurrentNode()->HitTest( aP );
}
}
bool ROUTER::StartDragging( const VECTOR2I& aP, ITEM* aStartItem )
{
@ -152,6 +151,7 @@ bool ROUTER::StartDragging( const VECTOR2I& aP, ITEM* aStartItem )
return true;
}
bool ROUTER::StartRouting( const VECTOR2I& aP, ITEM* aStartItem, int aLayer )
{
switch( m_mode )
@ -197,6 +197,7 @@ void ROUTER::DisplayItems( const ITEM_SET& aItems )
m_iface->DisplayItem( item );
}
void ROUTER::Move( const VECTOR2I& aP, ITEM* endItem )
{
m_currentEnd = aP;
@ -228,8 +229,7 @@ void ROUTER::moveDragging( const VECTOR2I& aP, ITEM* aEndItem )
}
void ROUTER::markViolations( NODE* aNode, ITEM_SET& aCurrent,
NODE::ITEM_VECTOR& aRemoved )
void ROUTER::markViolations( NODE* aNode, ITEM_SET& aCurrent, NODE::ITEM_VECTOR& aRemoved )
{
for( ITEM* item : aCurrent.Items() )
{
@ -483,6 +483,7 @@ void ROUTER::SetMode( ROUTER_MODE aMode )
m_mode = aMode;
}
void ROUTER::SetInterface( ROUTER_IFACE *aIface )
{
m_iface = aIface;