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
ea4b3877
Commit
ea4b3877
authored
Oct 24, 2012
by
Dick Hollenbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move wxString constructor outside loop for speed
parent
28222961
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
kicad_plugin.cpp
pcbnew/kicad_plugin.cpp
+3
-3
No files found.
pcbnew/kicad_plugin.cpp
View file @
ea4b3877
...
...
@@ -1054,18 +1054,18 @@ void PCB_IO::format( D_PAD* aPad, int aNestLevel ) const
if
(
m_board
)
layerMask
&=
m_board
->
GetEnabledLayers
();
wxString
layerName
;
for
(
int
layer
=
0
;
layerMask
;
++
layer
,
layerMask
>>=
1
)
{
if
(
layerMask
&
1
)
{
wxString
layerName
;
if
(
m_board
)
layerName
=
m_board
->
GetLayerName
(
layer
);
else
layerName
=
BOARD
::
GetDefaultLayerName
(
layer
,
true
);
m_out
->
Print
(
0
,
" %s"
,
m_out
->
Quotew
(
layerName
).
c_str
()
);
m_out
->
Print
(
0
,
" %s"
,
m_out
->
Quotew
(
layerName
).
c_str
()
);
}
}
...
...
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