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

@@ -188,27 +188,26 @@ void wxPropertyGridIteratorBase::Next( bool iterateChildren )
// -----------------------------------------------------------------------
wxPropertyGridPageState::wxPropertyGridPageState()
: m_pPropGrid(NULL)
, m_properties(&m_regularArray)
, m_abcArray(NULL)
, m_currentCategory(NULL)
, m_width(0)
, m_virtualHeight(0)
, m_itemsAdded(false)
, m_anyModified(false)
, m_vhCalcPending(false)
, m_fSplitterX(wxPG_DEFAULT_SPLITTERX)
, m_isSplitterPreSet(false)
, m_dontCenterSplitter(false)
{
m_pPropGrid = NULL;
m_regularArray.SetParentState(this);
m_properties = &m_regularArray;
m_abcArray = NULL;
m_currentCategory = NULL;
m_width = 0;
m_virtualHeight = 0;
m_itemsAdded = false;
m_anyModified = false;
m_vhCalcPending = false;
m_colWidths.push_back( wxPG_DEFAULT_SPLITTERX );
m_colWidths.push_back( wxPG_DEFAULT_SPLITTERX );
m_fSplitterX = wxPG_DEFAULT_SPLITTERX;
m_columnProportions.push_back(1);
m_columnProportions.push_back(1);
m_isSplitterPreSet = false;
m_dontCenterSplitter = false;
// By default, we only have the 'value' column editable
m_editableColumns.push_back(1);
}