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
81751632
Commit
81751632
authored
Apr 01, 2013
by
Lorenzo Marcantonio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better type safety to DANGLING_END_ITEM (SCH_ITEM* instead of void*)
parent
c32f56ff
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
sch_item_struct.h
include/sch_item_struct.h
+3
-3
No files found.
include/sch_item_struct.h
View file @
81751632
...
@@ -85,7 +85,7 @@ class DANGLING_END_ITEM
...
@@ -85,7 +85,7 @@ class DANGLING_END_ITEM
{
{
private
:
private
:
/// A pointer to the connectable object.
/// A pointer to the connectable object.
const
void
*
m_item
;
const
EDA_ITEM
*
m_item
;
/// The position of the connection point.
/// The position of the connection point.
wxPoint
m_pos
;
wxPoint
m_pos
;
...
@@ -94,7 +94,7 @@ private:
...
@@ -94,7 +94,7 @@ private:
DANGLING_END_T
m_type
;
DANGLING_END_T
m_type
;
public
:
public
:
DANGLING_END_ITEM
(
DANGLING_END_T
aType
,
const
void
*
aItem
,
const
wxPoint
&
aPosition
)
DANGLING_END_ITEM
(
DANGLING_END_T
aType
,
const
EDA_ITEM
*
aItem
,
const
wxPoint
&
aPosition
)
{
{
m_item
=
aItem
;
m_item
=
aItem
;
m_type
=
aType
;
m_type
=
aType
;
...
@@ -102,7 +102,7 @@ public:
...
@@ -102,7 +102,7 @@ public:
}
}
wxPoint
GetPosition
()
const
{
return
m_pos
;
}
wxPoint
GetPosition
()
const
{
return
m_pos
;
}
const
void
*
GetItem
()
const
{
return
m_item
;
}
const
EDA_ITEM
*
GetItem
()
const
{
return
m_item
;
}
DANGLING_END_T
GetType
()
const
{
return
m_type
;
}
DANGLING_END_T
GetType
()
const
{
return
m_type
;
}
};
};
...
...
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