]> git.saurik.com Git - wxWidgets.git/commitdiff
added wxBuffer::reset()
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 2 Apr 2006 14:57:36 +0000 (14:57 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 2 Apr 2006 14:57:36 +0000 (14:57 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38522 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/buffer.h

index 1c54c504040c52d1737ecbd641a64c03850d0892..fa8f3215c5b5943386fff9422e50a357df605689 100644 (file)
@@ -64,6 +64,12 @@ public:                                                                     \
         return p;                                                           \
     }                                                                       \
                                                                             \
+    void reset()                                                            \
+    {                                                                       \
+        free(m_str);                                                        \
+        m_str = NULL;                                                       \
+    }                                                                       \
+                                                                            \
     classname(const classname& src)                                         \
         : m_str(src.release())                                              \
     {                                                                       \