From: Václav Slavík Date: Fri, 5 Oct 2007 22:41:54 +0000 (+0000) Subject: fixed WX_CLEAR_HASH_SET to compile X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/3115bfa8a41372ecfd505f22c6a0eb9abc2bc96b fixed WX_CLEAR_HASH_SET to compile git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49055 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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_