Switched to default constructor and operator= for EDA_TEXT.

This commit is contained in:
Maciej Suminski 2016-05-30 10:36:07 +02:00
parent 7ad2f37391
commit f95628c132
2 changed files with 4 additions and 18 deletions

View File

@ -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()
{
}

View File

@ -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();
/**