X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/eaf6da074684bb26937905e8a0369009e2c03da2..c753eb9269d1e6c99b80a2d782ce49d9864ac1da:/src/common/arrstr.cpp diff --git a/src/common/arrstr.cpp b/src/common/arrstr.cpp index bb22e7e88c..862519fe33 100644 --- a/src/common/arrstr.cpp +++ b/src/common/arrstr.cpp @@ -206,6 +206,7 @@ void wxArrayString::Shrink() pNew[j] = m_pItems[j]; delete [] m_pItems; m_pItems = pNew; + m_nSize = m_nCount; } } @@ -378,13 +379,6 @@ void wxArrayString::Remove(const wxString& sz) RemoveAt(iIndex); } -void wxArrayString::assign(const_iterator first, const_iterator last) -{ - reserve(last - first); - for(; first != last; ++first) - push_back(*first); -} - // ---------------------------------------------------------------------------- // sorting // ----------------------------------------------------------------------------