Use ctor-initializer rather than assignment for non-POD class members

This commit is contained in:
Paul Cornett
2019-04-05 10:21:04 -07:00
parent 691521e411
commit af1cf0a5f3
10 changed files with 40 additions and 41 deletions

View File

@@ -292,8 +292,8 @@ bool wxHtmlCell::IsBefore(wxHtmlCell *cell) const
wxIMPLEMENT_ABSTRACT_CLASS(wxHtmlWordCell, wxHtmlCell);
wxHtmlWordCell::wxHtmlWordCell(const wxString& word, const wxDC& dc) : wxHtmlCell()
, m_Word(word)
{
m_Word = word;
wxCoord w, h, d;
dc.GetTextExtent(m_Word, &w, &h, &d);
m_Width = w;