Iterate over all items of wxVector with header columns with iterator
This commit is contained in:
parent
1f739e5f82
commit
a95293d5f9
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user