Further fix m_children use with wxUSE_STL=1
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56050 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1222,7 +1222,7 @@ void wxFlagsProperty::Init()
|
|||||||
//
|
//
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
|
|
||||||
unsigned int prevChildCount = m_children.GetCount();
|
unsigned int prevChildCount = m_children.size();
|
||||||
|
|
||||||
int oldSel = -1;
|
int oldSel = -1;
|
||||||
if ( prevChildCount )
|
if ( prevChildCount )
|
||||||
@@ -1248,9 +1248,9 @@ void wxFlagsProperty::Init()
|
|||||||
|
|
||||||
// Delete old children
|
// Delete old children
|
||||||
for ( i=0; i<prevChildCount; i++ )
|
for ( i=0; i<prevChildCount; i++ )
|
||||||
delete ( (wxPGProperty*) m_children[i] );
|
delete m_children[i];
|
||||||
|
|
||||||
m_children.Empty();
|
m_children.clear();
|
||||||
|
|
||||||
if ( m_choices.IsOk() )
|
if ( m_choices.IsOk() )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user