Replace wxList used in wxHtmlPrintout with wxVector<> too

Prefer the use of the standard-like template class to macro-based list.

It also makes more sense to use a vector rather than a linked list here,
as the elements are never removed from or inserted into m_Filters, so
there is no reason to prefer the list structure.
This commit is contained in:
Vadim Zeitlin
2018-05-25 01:22:29 +02:00
parent edeca4d9d6
commit c5bb583cdf
2 changed files with 9 additions and 8 deletions

View File

@@ -200,7 +200,7 @@ private:
float m_MarginTop, m_MarginBottom, m_MarginLeft, m_MarginRight, m_MarginSpace;
// list of HTML filters
static wxList m_Filters;
static wxVector<wxHtmlFilter*> m_Filters;
wxDECLARE_NO_COPY_CLASS(wxHtmlPrintout);
};