Use ctor initializer for non-trivial data members
This commit is contained in:
parent
d35e516fd5
commit
1532afcb2f
@ -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; }
|
||||
|
Loading…
Reference in New Issue
Block a user