Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
57bfaca1
Commit
57bfaca1
authored
Jan 29, 2014
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PNS_ITEM::m_parent: BOARD_ITEM->BOARD_CONNECTED_ITEM
parent
af350eb1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
pns_item.h
pcbnew/router/pns_item.h
+4
-4
pns_router.cpp
pcbnew/router/pns_router.cpp
+2
-2
No files found.
pcbnew/router/pns_item.h
View file @
57bfaca1
...
...
@@ -28,7 +28,7 @@
#include "pns_layerset.h"
class
BOARD_ITEM
;
class
BOARD_
CONNECTED_
ITEM
;
class
PNS_NODE
;
/**
...
...
@@ -94,8 +94,8 @@ public:
const
std
::
string
GetKindStr
()
const
;
///> Gets/Sets the corresponding parent object in the host application's model (pcbnew)
void
SetParent
(
BOARD_ITEM
*
aParent
)
{
m_parent
=
aParent
;
}
BOARD_ITEM
*
GetParent
()
const
{
return
m_parent
;
}
void
SetParent
(
BOARD_
CONNECTED_
ITEM
*
aParent
)
{
m_parent
=
aParent
;
}
BOARD_
CONNECTED_
ITEM
*
GetParent
()
const
{
return
m_parent
;
}
///> Net accessors
int
GetNet
()
const
{
return
m_net
;
}
...
...
@@ -145,7 +145,7 @@ private:
protected
:
PnsKind
m_kind
;
BOARD_ITEM
*
m_parent
;
BOARD_
CONNECTED_
ITEM
*
m_parent
;
PNS_NODE
*
m_world
;
PNS_NODE
*
m_owner
;
PNS_LAYERSET
m_layers
;
...
...
pcbnew/router/pns_router.cpp
View file @
57bfaca1
...
...
@@ -580,7 +580,7 @@ void PNS_ROUTER::commitRouting( PNS_NODE* aNode )
for
(
unsigned
int
i
=
0
;
i
<
removed
.
size
();
i
++
)
{
BOARD_ITEM
*
parent
=
removed
[
i
]
->
GetParent
();
BOARD_
CONNECTED_
ITEM
*
parent
=
removed
[
i
]
->
GetParent
();
if
(
parent
)
{
...
...
@@ -591,7 +591,7 @@ void PNS_ROUTER::commitRouting( PNS_NODE* aNode )
BOOST_FOREACH
(
PNS_ITEM
*
item
,
added
)
{
BOARD_ITEM
*
newBI
=
NULL
;
BOARD_
CONNECTED_
ITEM
*
newBI
=
NULL
;
switch
(
item
->
GetKind
()
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment