]> git.saurik.com Git - wxWidgets.git/commitdiff
WX_CLEAR_ARRAY() now calls Empty() too
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 12 Jan 1999 23:37:45 +0000 (23:37 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 12 Jan 1999 23:37:45 +0000 (23:37 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1382 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/dynarray.h

index 0085620961aa074d674853fc27633b2430798f63..d1a4f020a6f642831c69d027a9ac6911ea61d705 100644 (file)
@@ -428,6 +428,8 @@ WX_DEFINE_ARRAY(void *, wxArrayPtrVoid);
         {                                                                     \
             delete array[n];                                                  \
         }                                                                     \
+                                                                              \
+        array.Empty();                                                        \
     }
 #endif // _DYNARRAY_H