From: Vadim Zeitlin Date: Sat, 26 Jan 2002 23:53:47 +0000 (+0000) Subject: removed assert(size != 0) from wxArrayString::Alloc(size) as it was inconsistent... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/8a9d5e5a7321ab71ad690ec98f374bf2b28148b9 removed assert(size != 0) from wxArrayString::Alloc(size) as it was inconsistent with wxArray::Alloc() and wxString::Alloc() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13842 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/string.cpp b/src/common/string.cpp index 134cd452c6..c8ebc830cd 100644 --- a/src/common/string.cpp +++ b/src/common/string.cpp @@ -2024,8 +2024,6 @@ wxArrayString::~wxArrayString() // pre-allocates memory (frees the previous data!) void wxArrayString::Alloc(size_t nSize) { - wxASSERT( nSize > 0 ); - // only if old buffer was not big enough if ( nSize > m_nSize ) { Free();