Use ctor-initializer rather than assignment for non-POD class members
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user