Iterate over all items of wxVector with header columns with iterator

This commit is contained in:
Artur Wieczorek 2019-01-08 22:24:06 +01:00
parent 1f739e5f82
commit a95293d5f9

View File

@ -242,8 +242,11 @@ public:
virtual ~wxPGHeaderCtrl()
{
for (size_t i = 0; i < m_columns.size(); i++ )
delete m_columns[i];
for (wxVector<wxHeaderColumnSimple*>::const_iterator it = m_columns.begin();
it != m_columns.end(); ++it)
{
delete *it;
}
}
void OnPageChanged(const wxPropertyGridPage* page)