document Alloc() vs returning bool (part of bug 1933693)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53030 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1729,7 +1729,7 @@ public:
|
||||
// raw access to string memory
|
||||
// ensure that string has space for at least nLen characters
|
||||
// only works if the data of this string is not shared
|
||||
bool Alloc(size_t nLen) { reserve(nLen); /*return capacity() >= nLen;*/ return true; }
|
||||
bool Alloc(size_t nLen) { reserve(nLen); return capacity() >= nLen; }
|
||||
// minimize the string's memory
|
||||
// only works if the data of this string is not shared
|
||||
bool Shrink();
|
||||
|
Reference in New Issue
Block a user