Use m_children as it were std::vector

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56015 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Jaakko Salli
2008-10-01 15:13:00 +00:00
parent cfceb4a8e0
commit d8c74d044b
3 changed files with 41 additions and 8 deletions

View File

@@ -1581,6 +1581,20 @@ void wxPGProperty::AddChild( wxPGProperty* prop )
prop->m_parent = this;
}
void wxPGProperty::RemoveChild( wxPGProperty* p )
{
wxArrayPGProperty::iterator it;
wxArrayPGProperty& children = m_children;
for ( it=children.begin(); it != children.end(); it++ )
{
if ( *it == p )
{
m_children.erase(it);
break;
}
}
}
void wxPGProperty::AdaptListToValue( wxVariant& list, wxVariant* value ) const
{