Alloc() doesn't clear the array any more, for consistency with reserve()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42571 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -14,6 +14,7 @@ Changes in behaviour not resulting in compilation errors, please read this!
|
||||
if the whole name is a directory.
|
||||
- wxDialog::CreateButtonSizer() may return NULL now, please see the manual.
|
||||
- wxStaticBoxSizer now deletes the associated wxStaticBox when it is deleted.
|
||||
- wxArray::Alloc() now works as reserve() and does not clear the array any more
|
||||
- Windows calling CaptureMouse() are now required to handle the
|
||||
wxEVT_MOUSE_CAPTURE_LOST event and not call ReleaseMouse() in this case.
|
||||
|
||||
|
@@ -493,7 +493,8 @@ append a lot of items.
|
||||
Preallocates memory for a given number of array elements. It is worth calling
|
||||
when the number of items which are going to be added to the array is known in
|
||||
advance because it will save unneeded memory reallocation. If the array already
|
||||
has enough memory for the given number of items, nothing happens.
|
||||
has enough memory for the given number of items, nothing happens. In any case,
|
||||
the existing contents of the array is not modified.
|
||||
|
||||
\membersection{wxArray::Clear}\label{wxarrayclear}
|
||||
|
||||
|
Reference in New Issue
Block a user