diff --git a/include/wx/buffer.h b/include/wx/buffer.h index bd02a935db..1c54c50404 100644 --- a/include/wx/buffer.h +++ b/include/wx/buffer.h @@ -84,6 +84,18 @@ public: \ return *this; \ } \ \ + bool extend(size_t len) \ + { \ + chartype * \ + str = (chartype *)realloc(m_str, (len + 1)*sizeof(chartype)); \ + if ( !str ) \ + return false; \ + \ + m_str = str; \ + \ + return true; \ + } \ + \ chartype *data() { return m_str; } \ const chartype *data() const { return m_str; } \ operator const chartype *() const { return m_str; } \