Use ctor initializer for non-trivial data members

This commit is contained in:
Paul Cornett 2017-05-28 23:40:34 -07:00
parent d35e516fd5
commit 1532afcb2f

View File

@ -650,8 +650,10 @@ class WXDLLIMPEXP_HTML wxHtmlLinkInfo : public wxObject
public:
wxHtmlLinkInfo() : wxObject()
{ 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 wxString& href, const wxString& target = wxString())
: m_Href(href)
, m_Target(target)
{ m_Event = NULL; m_Cell = NULL; }
void SetEvent(const wxMouseEvent *e) { m_Event = e; }
void SetHtmlCell(const wxHtmlCell *e) { m_Cell = e; }