Fix wxScopedCharTypeBuffer<T>::CreateOwned() to match docs.

The documentation says that it takes ownership of the memory block
passed to it, but the implementation made a copy.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64209 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2010-05-05 07:45:33 +00:00
parent 10acc3ef6a
commit 338084945b
2 changed files with 3 additions and 3 deletions

View File

@@ -74,7 +74,7 @@ public:
@param len If specified, length of the string, otherwise the string
is considered to be NUL-terminated.
*/
static const wxScopedCharTypeBuffer CreateOwned(const CharType *str, size_t len = wxNO_LEN);
static const wxScopedCharTypeBuffer CreateOwned(CharType *str, size_t len = wxNO_LEN);
/**
Copy constructor.