From 7358202d295236fb3890fefe058336069d3713b6 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Sun, 28 May 2017 23:49:55 -0700 Subject: [PATCH] Use ctor initializer for non-trivial data members --- include/wx/html/htmlwin.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/wx/html/htmlwin.h b/include/wx/html/htmlwin.h index 82ef6132ac..b91304d16e 100644 --- a/include/wx/html/htmlwin.h +++ b/include/wx/html/htmlwin.h @@ -617,8 +617,8 @@ public: wxHtmlLinkEvent() {} wxHtmlLinkEvent(int id, const wxHtmlLinkInfo &linkinfo) : wxCommandEvent(wxEVT_HTML_LINK_CLICKED, id) + , m_linkInfo(linkinfo) { - m_linkInfo = linkinfo; } const wxHtmlLinkInfo &GetLinkInfo() const { return m_linkInfo; }