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:
Jaakko Salli 2008-10-03 15:08:48 +00:00
parent 6b18f6b7db
commit 63f62e764c

View File

@ -1222,7 +1222,7 @@ void wxFlagsProperty::Init()
//
unsigned int i;
unsigned int prevChildCount = m_children.GetCount();
unsigned int prevChildCount = m_children.size();
int oldSel = -1;
if ( prevChildCount )
@ -1248,9 +1248,9 @@ void wxFlagsProperty::Init()
// Delete old children
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() )
{