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
This commit is contained in:
parent
382fe64041
commit
22faef6ced
@ -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; \
|
||||
|
Loading…
Reference in New Issue
Block a user