Simplify PNS::VIA construction.
This commit is contained in:
parent
e1b39946fe
commit
9646e3c1c0
|
@ -42,7 +42,6 @@ HOLE* HOLE::Clone() const
|
|||
{
|
||||
HOLE* h = new HOLE( nullptr, m_holeShape->Clone() );
|
||||
|
||||
h->SetNet( Net() );
|
||||
h->SetLayers( Layers() );
|
||||
h->SetOwner( nullptr );
|
||||
|
||||
|
|
|
@ -88,10 +88,10 @@ public:
|
|||
m_pos = aB.m_pos;
|
||||
m_diameter = aB.m_diameter;
|
||||
m_shape = SHAPE_CIRCLE( m_pos, m_diameter / 2 );
|
||||
SetHole( aB.m_hole->Clone() );
|
||||
m_drill = aB.m_drill;
|
||||
SetHole( HOLE::MakeCircularHole( m_pos, m_drill / 2 ) );
|
||||
m_marker = aB.m_marker;
|
||||
m_rank = aB.m_rank;
|
||||
m_drill = aB.m_drill;
|
||||
m_viaType = aB.m_viaType;
|
||||
m_isFree = aB.m_isFree;
|
||||
m_isVirtual = aB.m_isVirtual;
|
||||
|
|
Loading…
Reference in New Issue