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:
@@ -107,6 +107,11 @@ public: \
|
|||||||
// be called (a decent compiler should give a warning about it, but don't
|
// be called (a decent compiler should give a warning about it, but don't
|
||||||
// count on it)!
|
// count on it)!
|
||||||
#define WX_CLEAR_HASH_SET(type, hashset) \
|
#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_
|
#endif // _WX_HASHSET_H_
|
||||||
|
Reference in New Issue
Block a user