Initialize data members in initialization lists

This commit is contained in:
Artur Wieczorek 2022-05-21 22:01:58 +02:00
parent 950f3ff34f
commit 1c292cfe2c
11 changed files with 57 additions and 64 deletions

View file

@ -334,8 +334,8 @@ public:
wxPGCommonValue( const wxString& label, wxPGCellRenderer* renderer )
: m_label(label)
, m_renderer(renderer)
{
m_renderer = renderer;
renderer->IncRef();
}
virtual ~wxPGCommonValue()
@ -408,9 +408,9 @@ class WXDLLIMPEXP_PROPGRID wxPGValidationInfo
friend class wxPropertyGrid;
public:
wxPGValidationInfo()
: m_failureBehavior(0)
, m_isFailing(false)
{
m_failureBehavior = 0;
m_isFailing = false;
}
~wxPGValidationInfo()