Allow initializing wxScopedArray more conveniently.
Typical wxScopedArray initialization uses "new T[n]" expression, allow to omit most of it and specify just n, the number of elements to allocate. Use the new shorter form in the places where wxScopedArray(new ...) was used (which is in almost all of them) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75504 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -129,6 +129,16 @@ public:
|
||||
*/
|
||||
explicit wxScopedArray(T * array = NULL);
|
||||
|
||||
/**
|
||||
Constructor allocating a new array of the specified size.
|
||||
|
||||
@param count
|
||||
The number of elements to allocate.
|
||||
|
||||
@since 3.1.0
|
||||
*/
|
||||
explicit wxScopedArray(size_t count);
|
||||
|
||||
/// Destructor destroy the array.
|
||||
~wxScopedArray();
|
||||
|
||||
|
Reference in New Issue
Block a user