X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/378b05f7f86eda83452d67f182afc62a0f9b982f..5ef9f903666c6d4be2b5120d8d531cb3b41fd8c1:/include/wx/string.h diff --git a/include/wx/string.h b/include/wx/string.h index cf7a45ac25..29be6c6770 100644 --- a/include/wx/string.h +++ b/include/wx/string.h @@ -705,6 +705,8 @@ public: void clear() { Empty(); } // returns true if the string is empty bool empty() const { return IsEmpty(); } + // inform string about planned change in size + void reserve(size_t size) { Alloc(size); } // lib.string.access // return the character at position n