// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
-#pragma implementation "prop.h"
-#endif
-
// For compilers that support precompilation, includes "wx/wx.h".
#include "wx/wxprec.h"
// Clear all properties
void wxPropertySheet::Clear(void)
{
- wxObjectList::compatibility_iterator node = m_properties.GetFirst();
- while (node)
- {
- wxProperty *prop = (wxProperty *)node->GetData();
- wxObjectList::compatibility_iterator next = node->GetNext();
- delete prop;
- delete node;
- node = next;
- }
+ wxObjectList::compatibility_iterator node = m_properties.GetFirst();
+ while (node)
+ {
+ wxProperty *prop = (wxProperty *)node->GetData();
+ delete prop;
+ node = node->GetNext();
+ }
+ m_properties.Clear();
}
// Sets/clears the modified flag for each property value