From: Robin Dunn Date: Sat, 16 Apr 2005 04:08:35 +0000 (+0000) Subject: Allow wxCharBuffer to be constructed without parameters (making a zero X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/22faef6ced3961e62b372afcec202229ed2f1a69 Allow wxCharBuffer to be constructed without parameters (making a zero 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 --- diff --git a/include/wx/buffer.h b/include/wx/buffer.h index 976177e3f1..3cea4f35f8 100644 --- a/include/wx/buffer.h +++ b/include/wx/buffer.h @@ -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; \