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
324f5744
Commit
324f5744
authored
Oct 17, 2008
by
dickelbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
better vector element swap
parent
9d48d104
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
component_class.cpp
eeschema/component_class.cpp
+1
-3
No files found.
eeschema/component_class.cpp
View file @
324f5744
...
@@ -398,9 +398,7 @@ void SCH_COMPONENT::SwapData( SCH_COMPONENT* copyitem )
...
@@ -398,9 +398,7 @@ void SCH_COMPONENT::SwapData( SCH_COMPONENT* copyitem )
EXCHG
(
m_Transform
[
1
][
0
],
copyitem
->
m_Transform
[
1
][
0
]
);
EXCHG
(
m_Transform
[
1
][
0
],
copyitem
->
m_Transform
[
1
][
0
]
);
EXCHG
(
m_Transform
[
1
][
1
],
copyitem
->
m_Transform
[
1
][
1
]
);
EXCHG
(
m_Transform
[
1
][
1
],
copyitem
->
m_Transform
[
1
][
1
]
);
SCH_CMP_FIELDS
tmp
=
copyitem
->
m_Fields
;
m_Fields
.
swap
(
copyitem
->
m_Fields
);
// std::vector's swap()
copyitem
->
m_Fields
=
m_Fields
;
m_Fields
=
tmp
;
}
}
...
...
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