X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f644b28c1154d638270d0d1abbc41f760be6abbd..a13acfd8038210b0396816b6e078a92219a33539:/src/common/list.cpp?ds=sidebyside diff --git a/src/common/list.cpp b/src/common/list.cpp index ed3c4a69d6..9153599e48 100644 --- a/src/common/list.cpp +++ b/src/common/list.cpp @@ -594,12 +594,6 @@ void wxObjectListNode::DeleteData() // wxStringList // ---------------------------------------------------------------------------- -static inline wxChar* MYcopystring(const wxString& s) -{ - wxChar* copy = new wxChar[s.length() + 1]; - return wxStrcpy(copy, s.c_str()); -} - static inline wxChar* MYcopystring(const wxChar* s) { wxChar* copy = new wxChar[wxStrlen(s) + 1]; @@ -756,4 +750,15 @@ wxNode *wxStringList::Prepend(const wxChar *s) #endif // wxLIST_COMPATIBILITY +#else // wxUSE_STL = 1 + + #include + WX_DEFINE_LIST(wxObjectList); + +// with wxUSE_STL wxStringList contains wxString objects, not pointers +void wxStringListBase::DeleteFunction( const wxString WXUNUSED(X) ) +{ +} + #endif // !wxUSE_STL +