Add wxString::shrink_to_fit() as synonym for Shrink()

Provide C++11 std::string-compatible method name too.
This commit is contained in:
Vadim Zeitlin
2019-08-22 00:01:36 +02:00
parent 2dbdbe1927
commit ea965327eb

View File

@@ -1350,6 +1350,8 @@ public:
size_type capacity() const { return m_impl.capacity(); } size_type capacity() const { return m_impl.capacity(); }
void reserve(size_t sz) { m_impl.reserve(sz); } void reserve(size_t sz) { m_impl.reserve(sz); }
void shrink_to_fit() { Shrink(); }
void resize(size_t nSize, wxUniChar ch = wxT('\0')) void resize(size_t nSize, wxUniChar ch = wxT('\0'))
{ {
const size_t len = length(); const size_t len = length();