X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/318c5e9fa54678ecf284966814ca6414aea8ed04..bfeed34c1cb102300a9a24a50657304e60486700:/contrib/src/deprecated/prop.cpp diff --git a/contrib/src/deprecated/prop.cpp b/contrib/src/deprecated/prop.cpp index dbd1fac104..7f7d122551 100644 --- a/contrib/src/deprecated/prop.cpp +++ b/contrib/src/deprecated/prop.cpp @@ -9,10 +9,6 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ -#pragma implementation "prop.h" -#endif - // For compilers that support precompilation, includes "wx/wx.h". #include "wx/wxprec.h" @@ -1028,15 +1024,14 @@ bool wxPropertySheet::HasProperty(const wxString& name) const // 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