fixed WX_CLEAR_HASH_SET to compile

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49055 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2007-10-05 22:41:54 +00:00
parent e960ba596b
commit 3115bfa8a4

View File

@@ -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_