Code formatting.

This commit is contained in:
Maciej Suminski 2015-07-10 23:42:05 +02:00
parent a7613b6d6a
commit a530ffad50
6 changed files with 9 additions and 9 deletions

View File

@ -176,7 +176,7 @@ int PNS_LINE::CountCorners( int aAngles )
bool PNS_LINE::Walkaround( SHAPE_LINE_CHAIN aObstacle, SHAPE_LINE_CHAIN& aPre,
SHAPE_LINE_CHAIN& aWalk, SHAPE_LINE_CHAIN& aPost, bool aCw ) const
{
const SHAPE_LINE_CHAIN& line ( CLine() );
const SHAPE_LINE_CHAIN& line( CLine() );
VECTOR2I ip_start;
VECTOR2I ip_end;

View File

@ -70,7 +70,7 @@ public:
m_width = 1; // Dummy value
}
PNS_LINE( const PNS_LINE& aOther ) ;
PNS_LINE( const PNS_LINE& aOther );
/**
* Constructor

View File

@ -831,8 +831,7 @@ bool PNS_LINE_PLACER::Move( const VECTOR2I& aP, PNS_ITEM* aEndItem )
PNS_NODE* latestNode = m_currentNode;
m_lastNode = latestNode->Branch();
if( eiDepth >= 0 && aEndItem && latestNode->Depth() > eiDepth &&
current.SegmentCount() )
if( eiDepth >= 0 && aEndItem && latestNode->Depth() > eiDepth && current.SegmentCount() )
{
splitAdjacentSegments( m_lastNode, aEndItem, current.CPoint( -1 ) );

View File

@ -142,8 +142,8 @@ PNS_WALKAROUND::WALKAROUND_STATUS PNS_WALKAROUND::Route( const PNS_LINE& aInitia
// special case for via-in-the-middle-of-track placement
if( aInitialPath.PointCount() <= 1 )
{
if(aInitialPath.EndsWithVia() && m_world->CheckColliding( &aInitialPath.Via(), m_itemMask ) )
return STUCK;
if( aInitialPath.EndsWithVia() && m_world->CheckColliding( &aInitialPath.Via(), m_itemMask ) )
return STUCK;
aWalkPath = aInitialPath;
return DONE;

View File

@ -66,9 +66,10 @@ void ROUTER_PREVIEW_ITEM::Update( const PNS_ITEM* aItem )
{
m_originLayer = aItem->Layers().Start();
if( aItem->OfKind ( PNS_ITEM::LINE ) )
if( aItem->OfKind( PNS_ITEM::LINE ) )
{
const PNS_LINE* l=static_cast<const PNS_LINE*>( aItem );
const PNS_LINE* l = static_cast<const PNS_LINE*>( aItem );
if( !l->SegmentCount() )
return;
}

View File

@ -498,7 +498,7 @@ void ROUTER_TOOL::performRouting()
{
bool saveUndoBuffer = true;
if( !prepareInteractive( ) )
if( !prepareInteractive() )
return;
while( OPT_TOOL_EVENT evt = Wait() )