From f73acbb2066c10d91d9e32301639f0773c408548 Mon Sep 17 00:00:00 2001 From: Tomasz Wlostowski Date: Fri, 3 Jun 2022 23:03:41 +0200 Subject: [PATCH] router: derive VIA class from LINKED_ITEM interface --- pcbnew/router/pns_via.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pcbnew/router/pns_via.h b/pcbnew/router/pns_via.h index e09a49745a..cf9b5a7a7d 100644 --- a/pcbnew/router/pns_via.h +++ b/pcbnew/router/pns_via.h @@ -29,6 +29,7 @@ #include "pcb_track.h" #include "pns_item.h" +#include "pns_linked_item.h" namespace PNS { @@ -45,11 +46,11 @@ struct VIA_HANDLE int net = -1; }; -class VIA : public ITEM +class VIA : public LINKED_ITEM { public: VIA() : - ITEM( VIA_T ) + LINKED_ITEM( VIA_T ) { m_diameter = 2; // Dummy value m_drill = 0; @@ -60,7 +61,7 @@ public: VIA( const VECTOR2I& aPos, const LAYER_RANGE& aLayers, int aDiameter, int aDrill, int aNet = -1, VIATYPE aViaType = VIATYPE::THROUGH ) : - ITEM( VIA_T ) + LINKED_ITEM( VIA_T ) { SetNet( aNet ); SetLayers( aLayers ); @@ -75,7 +76,7 @@ public: } VIA( const VIA& aB ) : - ITEM( aB ) + LINKED_ITEM( aB ) { SetNet( aB.Net() ); SetLayers( aB.Layers() );