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

@@ -447,16 +447,15 @@ bool wxRichTextPrintout::SubstituteKeywords(wxString& str, const wxString& title
*/
wxRichTextPrinting::wxRichTextPrinting(const wxString& name, wxWindow *parentWindow)
: m_title(name)
, m_previewRect(100, 100, 800, 800)
{
m_richTextBufferPrinting = NULL;
m_richTextBufferPreview = NULL;
m_parentWindow = parentWindow;
m_title = name;
m_printData = NULL;
m_previewRect = wxRect(wxPoint(100, 100), wxSize(800, 800));
m_pageSetupData = new wxPageSetupDialogData;
m_pageSetupData->EnableMargins(true);
m_pageSetupData->SetMarginTopLeft(wxPoint(25, 25));