X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e786a78b1c826c54a8d7a233cfab7195dcd7e279..99d21c0e1f8d87570702c52dccd3ad698f0a0931:/include/wx/hashset.h diff --git a/include/wx/hashset.h b/include/wx/hashset.h index faabd3a878..fb423ee11e 100644 --- a/include/wx/hashset.h +++ b/include/wx/hashset.h @@ -107,6 +107,11 @@ public: \ // be called (a decent compiler should give a warning about it, but don't // count on it)! #define WX_CLEAR_HASH_SET(type, hashset) \ - WX_CLEAR_HASH_MAP(type, hashset) + { \ + type::iterator it, en; \ + for( it = (hashset).begin(), en = (hashset).end(); it != en; ++it ) \ + delete *it; \ + (hashset).clear(); \ + } #endif // _WX_HASHSET_H_