]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/buffer.h
use proper dllexport declaration with _WX_LIST_HELPER_
[wxWidgets.git] / include / wx / buffer.h
index bd02a935dbbe548d2a7807423ada5588cfe623cd..1c54c504040c52d1737ecbd641a64c03850d0892 100644 (file)
@@ -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; }                     \