removed useless assert from wxArray::Alloc
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10169 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -141,8 +141,6 @@ void wxBaseArray::Clear()
|
|||||||
// pre-allocates memory (frees the previous data!)
|
// pre-allocates memory (frees the previous data!)
|
||||||
void wxBaseArray::Alloc(size_t nSize)
|
void wxBaseArray::Alloc(size_t nSize)
|
||||||
{
|
{
|
||||||
wxASSERT( nSize > 0 );
|
|
||||||
|
|
||||||
// only if old buffer was not big enough
|
// only if old buffer was not big enough
|
||||||
if ( nSize > m_nSize ) {
|
if ( nSize > m_nSize ) {
|
||||||
wxDELETEA(m_pItems);
|
wxDELETEA(m_pItems);
|
||||||
|
Reference in New Issue
Block a user