Use ctor initializer for non-trivial data members
This commit is contained in:
@@ -650,8 +650,10 @@ class WXDLLIMPEXP_HTML wxHtmlLinkInfo : public wxObject
|
|||||||
public:
|
public:
|
||||||
wxHtmlLinkInfo() : wxObject()
|
wxHtmlLinkInfo() : wxObject()
|
||||||
{ m_Href = m_Target = wxEmptyString; m_Event = NULL; m_Cell = NULL; }
|
{ m_Href = m_Target = wxEmptyString; m_Event = NULL; m_Cell = NULL; }
|
||||||
wxHtmlLinkInfo(const wxString& href, const wxString& target = wxEmptyString) : wxObject()
|
wxHtmlLinkInfo(const wxString& href, const wxString& target = wxString())
|
||||||
{ m_Href = href; m_Target = target; m_Event = NULL; m_Cell = NULL; }
|
: m_Href(href)
|
||||||
|
, m_Target(target)
|
||||||
|
{ m_Event = NULL; m_Cell = NULL; }
|
||||||
|
|
||||||
void SetEvent(const wxMouseEvent *e) { m_Event = e; }
|
void SetEvent(const wxMouseEvent *e) { m_Event = e; }
|
||||||
void SetHtmlCell(const wxHtmlCell *e) { m_Cell = e; }
|
void SetHtmlCell(const wxHtmlCell *e) { m_Cell = e; }
|
||||||
|
Reference in New Issue
Block a user