diff --git a/common/eda_text.cpp b/common/eda_text.cpp index adf5c78ea7..6500c6eec1 100644 --- a/common/eda_text.cpp +++ b/common/eda_text.cpp @@ -66,23 +66,6 @@ EDA_TEXT::EDA_TEXT( const wxString& text ) } -EDA_TEXT::EDA_TEXT( const EDA_TEXT& aText ) -{ - m_Pos = aText.m_Pos; - m_Size = aText.m_Size; - m_Orient = aText.m_Orient; - m_Attributs = aText.m_Attributs; - m_Mirror = aText.m_Mirror; - m_HJustify = aText.m_HJustify; - m_VJustify = aText.m_VJustify; - m_Thickness = aText.m_Thickness; - m_Italic = aText.m_Italic; - m_Bold = aText.m_Bold; - m_MultilineAllowed = aText.m_MultilineAllowed; - m_Text = aText.m_Text; -} - - EDA_TEXT::~EDA_TEXT() { } diff --git a/include/eda_text.h b/include/eda_text.h index f82609da5c..aa2b6d4c1a 100644 --- a/include/eda_text.h +++ b/include/eda_text.h @@ -97,7 +97,10 @@ protected: public: EDA_TEXT( const wxString& text = wxEmptyString ); - EDA_TEXT( const EDA_TEXT& aText ); + + // Do not create a copy constructor & operator=. + // The ones generated by the compiler are adequate. + virtual ~EDA_TEXT(); /**