Build fix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38724 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
1d94e268dd
commit
3ed377f13a
@ -1024,15 +1024,14 @@ bool wxPropertySheet::HasProperty(const wxString& name) const
|
|||||||
// Clear all properties
|
// Clear all properties
|
||||||
void wxPropertySheet::Clear(void)
|
void wxPropertySheet::Clear(void)
|
||||||
{
|
{
|
||||||
wxObjectList::compatibility_iterator node = m_properties.GetFirst();
|
wxObjectList::compatibility_iterator node = m_properties.GetFirst();
|
||||||
while (node)
|
while (node)
|
||||||
{
|
{
|
||||||
wxProperty *prop = (wxProperty *)node->GetData();
|
wxProperty *prop = (wxProperty *)node->GetData();
|
||||||
wxObjectList::compatibility_iterator next = node->GetNext();
|
delete prop;
|
||||||
delete prop;
|
node = node->GetNext();
|
||||||
delete node;
|
}
|
||||||
node = next;
|
m_properties.Clear();
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Sets/clears the modified flag for each property value
|
// Sets/clears the modified flag for each property value
|
||||||
|
Loading…
Reference in New Issue
Block a user