X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/747d7d7c159a57015d7aa9d844f834b78f613272..3454f80227ae2f56585a0af38cb5d89eda351c0b:/samples/widgets/itemcontainer.h diff --git a/samples/widgets/itemcontainer.h b/samples/widgets/itemcontainer.h index 59e26b308c..f2ef6cb174 100644 --- a/samples/widgets/itemcontainer.h +++ b/samples/widgets/itemcontainer.h @@ -12,14 +12,6 @@ #include "widgets.h" -// define a common base class for sorted and normal string arrays -#if wxUSE_STL - typedef wxBaseArrayStringBase wxMaybeSortedArrayString; -#else - // in non-STL build wxSortedArrayString derives from wxArrayString - typedef wxArrayString wxMaybeSortedArrayString; -#endif - class ItemContainerWidgetsPage : public WidgetsPage { public: @@ -34,7 +26,7 @@ public: private: void StartTest(const wxString& label); - void EndTest(const wxMaybeSortedArrayString& result); + void EndTest(const wxArrayString& result); // Track client data in wxItemContainer instances wxClientData* CreateClientData(int value); @@ -45,7 +37,9 @@ private: bool VerifyAllClientDataDestroyed(); bool VerifyClientData(wxUIntPtr i, const wxString& str); - wxString DumpContainerData(const wxMaybeSortedArrayString& expected) const; + wxString DumpContainerData(const wxArrayString& expected) const; + + static wxArrayString MakeArray(const wxSortedArrayString& sorted); wxArrayString m_items; wxSortedArrayString m_itemsSorted;