From 1532afcb2f673a5eed37c0b537a23018cfd093c3 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Sun, 28 May 2017 23:40:34 -0700 Subject: [PATCH] Use ctor initializer for non-trivial data members --- include/wx/html/htmlcell.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; }