X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fa10c70ceb3a08a11302c00c9f0e29941174a21b..b37023dca3a8627cee3fd26bf9cd9dae46e4a5b1:/src/html/htmprint.cpp?ds=sidebyside diff --git a/src/html/htmprint.cpp b/src/html/htmprint.cpp index 6f4912caee..14b443a30e 100644 --- a/src/html/htmprint.cpp +++ b/src/html/htmprint.cpp @@ -169,8 +169,7 @@ wxHtmlPrintout::~wxHtmlPrintout() void wxHtmlPrintout::CleanUpStatics() { - m_Filters.DeleteContents(TRUE); - m_Filters.Clear(); + WX_CLEAR_LIST(wxList, m_Filters); } // Adds input filter @@ -293,7 +292,7 @@ void wxHtmlPrintout::SetHtmlFile(const wxString& htmlfile) wxHtmlFilterHTML defaultFilter; wxString doc; - wxNode* node = m_Filters.GetFirst(); + wxList::compatibility_iterator node = m_Filters.GetFirst(); while (node) { wxHtmlFilter *h = (wxHtmlFilter*) node->GetData();