]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/dynarray.h
Various bug fixes, cosmetic changes
[wxWidgets.git] / include / wx / dynarray.h
index c7d94ac6d4744460bbc7cd8884786f4e909d7e11..a73954ae7365bb0ed9d9b170246668673af474d7 100644 (file)
@@ -184,7 +184,8 @@ public:                                                             \
   void Remove(uint uiIndex) { wxBaseArray::Remove(uiIndex); }       \
   void Remove(T Item)                                               \
     { int iIndex = Index(Item);                                     \
-      wxCHECK( iIndex != NOT_FOUND );                               \
+      wxCHECK2_MSG( iIndex != NOT_FOUND, return,                    \
+        "removing inexisting element in wxArray::Remove" );         \
       wxBaseArray::Remove((uint)iIndex); }                          \
                                                                     \
   void Sort(CMPFUNC##T fCmp) { wxBaseArray::Sort((CMPFUNC)fCmp); }  \