diff --git a/include/wx/html/htmlcell.h b/include/wx/html/htmlcell.h index 71cb034162..ffa69ceb37 100644 --- a/include/wx/html/htmlcell.h +++ b/include/wx/html/htmlcell.h @@ -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; }