Loading pcbnew/router/pns_item.h +4 −4 Original line number Original line Diff line number Diff line Loading @@ -28,7 +28,7 @@ #include "pns_layerset.h" #include "pns_layerset.h" class BOARD_ITEM; class BOARD_CONNECTED_ITEM; class PNS_NODE; class PNS_NODE; /** /** Loading Loading @@ -94,8 +94,8 @@ public: const std::string GetKindStr() const; const std::string GetKindStr() const; ///> Gets/Sets the corresponding parent object in the host application's model (pcbnew) ///> Gets/Sets the corresponding parent object in the host application's model (pcbnew) void SetParent( BOARD_ITEM* aParent ) { m_parent = aParent; } void SetParent( BOARD_CONNECTED_ITEM* aParent ) { m_parent = aParent; } BOARD_ITEM* GetParent() const { return m_parent; } BOARD_CONNECTED_ITEM* GetParent() const { return m_parent; } ///> Net accessors ///> Net accessors int GetNet() const { return m_net; } int GetNet() const { return m_net; } Loading Loading @@ -145,7 +145,7 @@ private: protected: protected: PnsKind m_kind; PnsKind m_kind; BOARD_ITEM* m_parent; BOARD_CONNECTED_ITEM* m_parent; PNS_NODE* m_world; PNS_NODE* m_world; PNS_NODE* m_owner; PNS_NODE* m_owner; PNS_LAYERSET m_layers; PNS_LAYERSET m_layers; Loading pcbnew/router/pns_router.cpp +2 −2 Original line number Original line Diff line number Diff line Loading @@ -580,7 +580,7 @@ void PNS_ROUTER::commitRouting( PNS_NODE* aNode ) for( unsigned int i = 0; i < removed.size(); i++ ) for( unsigned int i = 0; i < removed.size(); i++ ) { { BOARD_ITEM* parent = removed[i]->GetParent(); BOARD_CONNECTED_ITEM* parent = removed[i]->GetParent(); if( parent ) if( parent ) { { Loading @@ -591,7 +591,7 @@ void PNS_ROUTER::commitRouting( PNS_NODE* aNode ) BOOST_FOREACH( PNS_ITEM* item, added ) BOOST_FOREACH( PNS_ITEM* item, added ) { { BOARD_ITEM* newBI = NULL; BOARD_CONNECTED_ITEM* newBI = NULL; switch( item->GetKind() ) switch( item->GetKind() ) { { Loading Loading
pcbnew/router/pns_item.h +4 −4 Original line number Original line Diff line number Diff line Loading @@ -28,7 +28,7 @@ #include "pns_layerset.h" #include "pns_layerset.h" class BOARD_ITEM; class BOARD_CONNECTED_ITEM; class PNS_NODE; class PNS_NODE; /** /** Loading Loading @@ -94,8 +94,8 @@ public: const std::string GetKindStr() const; const std::string GetKindStr() const; ///> Gets/Sets the corresponding parent object in the host application's model (pcbnew) ///> Gets/Sets the corresponding parent object in the host application's model (pcbnew) void SetParent( BOARD_ITEM* aParent ) { m_parent = aParent; } void SetParent( BOARD_CONNECTED_ITEM* aParent ) { m_parent = aParent; } BOARD_ITEM* GetParent() const { return m_parent; } BOARD_CONNECTED_ITEM* GetParent() const { return m_parent; } ///> Net accessors ///> Net accessors int GetNet() const { return m_net; } int GetNet() const { return m_net; } Loading Loading @@ -145,7 +145,7 @@ private: protected: protected: PnsKind m_kind; PnsKind m_kind; BOARD_ITEM* m_parent; BOARD_CONNECTED_ITEM* m_parent; PNS_NODE* m_world; PNS_NODE* m_world; PNS_NODE* m_owner; PNS_NODE* m_owner; PNS_LAYERSET m_layers; PNS_LAYERSET m_layers; Loading
pcbnew/router/pns_router.cpp +2 −2 Original line number Original line Diff line number Diff line Loading @@ -580,7 +580,7 @@ void PNS_ROUTER::commitRouting( PNS_NODE* aNode ) for( unsigned int i = 0; i < removed.size(); i++ ) for( unsigned int i = 0; i < removed.size(); i++ ) { { BOARD_ITEM* parent = removed[i]->GetParent(); BOARD_CONNECTED_ITEM* parent = removed[i]->GetParent(); if( parent ) if( parent ) { { Loading @@ -591,7 +591,7 @@ void PNS_ROUTER::commitRouting( PNS_NODE* aNode ) BOOST_FOREACH( PNS_ITEM* item, added ) BOOST_FOREACH( PNS_ITEM* item, added ) { { BOARD_ITEM* newBI = NULL; BOARD_CONNECTED_ITEM* newBI = NULL; switch( item->GetKind() ) switch( item->GetKind() ) { { Loading