]> git.saurik.com Git - wxWidgets.git/commitdiff
Allow wxCharBuffer to be constructed without parameters (making a zero
authorRobin Dunn <robin@alldunn.com>
Sat, 16 Apr 2005 04:08:35 +0000 (04:08 +0000)
committerRobin Dunn <robin@alldunn.com>
Sat, 16 Apr 2005 04:08:35 +0000 (04:08 +0000)
length string by default) so it can be used in SWIG typemaps.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33638 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/buffer.h

index 976177e3f1f06a464df0a486f5668b237a6b9ce8..3cea4f35f807da5d870387da6407cd6913b460ed 100644 (file)
@@ -30,7 +30,7 @@ public:                                                                     \
     {                                                                       \
     }                                                                       \
                                                                             \
-    classname(size_t len)                                                   \
+    classname(size_t len=0)                                                 \
         : m_str((chartype *)malloc((len + 1)*sizeof(chartype)))             \
     {                                                                       \
         m_str[len] = (chartype)0;                                           \