use Alloc() in WX_PRE/APPEND_ARRAY (part of patch 1590194)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43024 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
081fcce3ba
commit
17cb6ff641
@ -973,6 +973,7 @@ WX_DEFINE_USER_EXPORTED_ARRAY_PTR(void *, wxArrayPtrVoid, class WXDLLIMPEXP_BASE
|
||||
#define WX_PREPEND_ARRAY(array, other) \
|
||||
{ \
|
||||
size_t wxAAcnt = (other).size(); \
|
||||
(array).Alloc(wxAAcnt); \
|
||||
for ( size_t wxAAn = 0; wxAAn < wxAAcnt; wxAAn++ ) \
|
||||
{ \
|
||||
(array).Insert((other)[wxAAn], wxAAn); \
|
||||
@ -983,6 +984,7 @@ WX_DEFINE_USER_EXPORTED_ARRAY_PTR(void *, wxArrayPtrVoid, class WXDLLIMPEXP_BASE
|
||||
#define WX_APPEND_ARRAY(array, other) \
|
||||
{ \
|
||||
size_t wxAAcnt = (other).size(); \
|
||||
(array).Alloc(wxAAcnt); \
|
||||
for ( size_t wxAAn = 0; wxAAn < wxAAcnt; wxAAn++ ) \
|
||||
{ \
|
||||
(array).push_back((other)[wxAAn]); \
|
||||
|
Loading…
Reference in New Issue
Block a user