X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/486f0e76c270719c66e6f44b81a3b1fa0a55e3d5..c16471b6e8b08bd7d02c4c4988a06f46b83634e1:/include/wx/hashmap.h diff --git a/include/wx/hashmap.h b/include/wx/hashmap.h index 14d8684f54..91c867ce86 100644 --- a/include/wx/hashmap.h +++ b/include/wx/hashmap.h @@ -74,11 +74,7 @@ protected: static void** AllocTable( size_t sz ) { -#ifdef __WXWINCE__ - return (void **)malloc(sz * sizeof(void*)); -#else return (void **)calloc(sz, sizeof(void*)); -#endif } }; @@ -378,7 +374,6 @@ public: \ typedef const VALUE_T const_t2; \ \ CLASSNAME( const const_t1& f, const const_t2& s ):first(t1(f)),second(t2(s)) {} \ - CLASSNAME( const const_t1& f ):first(t1(f)),second(t2()) {} \ \ t1 first; \ t2 second; \ @@ -521,7 +516,7 @@ public: \ \ mapped_type& operator[]( const const_key_type& key ) \ { \ - return GetOrCreateNode( CLASSNAME##_wxImplementation_Pair( key ) )->m_value.second; \ + return GetOrCreateNode( CLASSNAME##_wxImplementation_Pair( key, mapped_type() ) )->m_value.second; \ } \ \ const_iterator find( const const_key_type& key ) const \