From 3115bfa8a41372ecfd505f22c6a0eb9abc2bc96b Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Fri, 5 Oct 2007 22:41:54 +0000 Subject: [PATCH] fixed WX_CLEAR_HASH_SET to compile git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49055 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/hashset.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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_ -- 2.47.2