]> git.saurik.com Git - wxWidgets.git/commitdiff
default ctor should create an empty/uninitialized buffer, not one with a single chara...
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 31 Mar 2006 23:33:38 +0000 (23:33 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 31 Mar 2006 23:33:38 +0000 (23:33 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38494 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/buffer.h

index c15ca72c27fac6247baa53007dd091243d30acf5..bd02a935dbbe548d2a7807423ada5588cfe623cd 100644 (file)
 class WXDLLIMPEXP_BASE classname                                            \
 {                                                                           \
 public:                                                                     \
-    classname(const chartype *str)                                          \
+    classname(const chartype *str = NULL)                                   \
         : m_str(str ? strdupfunc(str) : NULL)                               \
     {                                                                       \
     }                                                                       \
                                                                             \
-    classname(size_t len=0)                                                 \
+    classname(size_t len)                                                   \
         : m_str((chartype *)malloc((len + 1)*sizeof(chartype)))             \
     {                                                                       \
         m_str[len] = (chartype)0;                                           \