]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/hashset.h
one additional assign
[wxWidgets.git] / include / wx / hashset.h
index faabd3a878281da5bbd0dbcb8ad4c49cb3e26b1f..fb423ee11ef1a83f985120e19a2ccb92963ebb56 100644 (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_