Use compiler-generated copy ctor and assignment operator for wxHtmlLinkInfo

This commit is contained in:
Paul Cornett
2017-05-28 23:29:10 -07:00
parent 3fe9d59651
commit d35e516fd5

View File

@@ -652,12 +652,6 @@ public:
{ m_Href = m_Target = wxEmptyString; m_Event = NULL; m_Cell = NULL; }
wxHtmlLinkInfo(const wxString& href, const wxString& target = wxEmptyString) : wxObject()
{ m_Href = href; m_Target = target; m_Event = NULL; m_Cell = NULL; }
wxHtmlLinkInfo(const wxHtmlLinkInfo& l) : wxObject()
{ m_Href = l.m_Href; m_Target = l.m_Target; m_Event = l.m_Event;
m_Cell = l.m_Cell; }
wxHtmlLinkInfo& operator=(const wxHtmlLinkInfo& l)
{ m_Href = l.m_Href; m_Target = l.m_Target; m_Event = l.m_Event;
m_Cell = l.m_Cell; return *this; }
void SetEvent(const wxMouseEvent *e) { m_Event = e; }
void SetHtmlCell(const wxHtmlCell *e) { m_Cell = e; }