]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix for declaring arrays for non-numeric/non-pointer types.
authorMattia Barbon <mbarbon@cpan.org>
Sun, 20 Jun 2004 10:22:23 +0000 (10:22 +0000)
committerMattia Barbon <mbarbon@cpan.org>
Sun, 20 Jun 2004 10:22:23 +0000 (10:22 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27909 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/dynarray.h

index 5aa6d149ca046cf44246ab0215a217e6e3904251..30c6d504c3185f16a8b2042aa4f60b62a7526942 100644 (file)
@@ -178,7 +178,7 @@ public:                                                             \
   void Shrink();                                                    \
                                                                     \
   size_t GetCount() const { return m_nCount; }                      \
-  void SetCount(size_t n, T defval = T(0));                         \
+  void SetCount(size_t n, T defval = T());                          \
   bool IsEmpty() const { return m_nCount == 0; }                    \
   size_t Count() const { return m_nCount; }                         \
                                                                     \