Commit 324f5744 authored by dickelbeck's avatar dickelbeck

better vector element swap

parent 9d48d104
......@@ -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][1], copyitem->m_Transform[1][1] );
SCH_CMP_FIELDS tmp = copyitem->m_Fields;
copyitem->m_Fields = m_Fields;
m_Fields = tmp;
m_Fields.swap( copyitem->m_Fields ); // std::vector's swap()
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment