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
48dc3d06
Commit
48dc3d06
authored
Jan 25, 2008
by
dickelbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
COLLECTOR::BasePtr()
parent
9ba9be70
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
class_collector.h
include/class_collector.h
+11
-0
specctra_export.cpp
pcbnew/specctra_export.cpp
+1
-2
No files found.
include/class_collector.h
View file @
48dc3d06
...
...
@@ -131,6 +131,17 @@ public:
return
NULL
;
}
/**
* Function BasePtr
* returns the address of the first element in the array. Only call this
* if there is at least one element in the vector m_List, otherwise a
* C++ exception should get thrown.
*/
EDA_BaseStruct
*
const
*
BasePtr
()
const
{
return
&
m_List
[
0
];
}
/**
* Function SetScanTypes
...
...
pcbnew/specctra_export.cpp
View file @
48dc3d06
...
...
@@ -242,8 +242,7 @@ static void makePADSTACKs( BOARD* aBoard, TYPE_COLLECTOR& aPads,
{
if
(
aPads
.
GetCount
()
)
{
#warning "uncomment next line asap"
//JPC qsort( (void*) aPads.BasePtr(), aPads.GetCount(), sizeof(D_PAD*), Pad_list_Sort_by_Shapes );
qsort
(
(
void
*
)
aPads
.
BasePtr
(),
aPads
.
GetCount
(),
sizeof
(
D_PAD
*
),
Pad_list_Sort_by_Shapes
);
}
D_PAD
*
old_pad
=
NULL
;
...
...
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