Use ctor initializer for non-trivial data members

This commit is contained in:
Paul Cornett
2017-02-18 10:48:27 -08:00
parent d886f8cce9
commit 4821bb4072
2 changed files with 7 additions and 7 deletions

View File

@@ -33,7 +33,7 @@ extern WXDLLIMPEXP_DATA_CORE(const char) wxFontPickerCtrlNameStr[];
class WXDLLIMPEXP_CORE wxFontPickerWidgetBase
{
public:
wxFontPickerWidgetBase() { m_selectedFont = *wxNORMAL_FONT; }
wxFontPickerWidgetBase() : m_selectedFont(*wxNORMAL_FONT) { }
virtual ~wxFontPickerWidgetBase() {}
wxFont GetSelectedFont() const