kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #16574
[PATCH 1/2] Hide EDA_ITEM ctors
This is really an abstract class and should not be instantiated directly.
---
include/base_struct.h | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/include/base_struct.h b/include/base_struct.h
index 360e4ff..5db45f4 100644
--- a/include/base_struct.h
+++ b/include/base_struct.h
@@ -188,11 +188,14 @@ private:
void initVars();
-public:
+protected:
EDA_ITEM( EDA_ITEM* parent, KICAD_T idType );
EDA_ITEM( KICAD_T idType );
EDA_ITEM( const EDA_ITEM& base );
+
+public:
+
virtual ~EDA_ITEM() { };
/**
--
2.1.4
Follow ups