Lines 89-94
Link Here
|
89 |
cc_memalloc_deallocate(entry->memhandler, ptr); |
89 |
cc_memalloc_deallocate(entry->memhandler, ptr); |
90 |
} |
90 |
} |
91 |
SbHashEntry(const Key & key, const Type & obj) : key(key), obj(obj) {} |
91 |
SbHashEntry(const Key & key, const Type & obj) : key(key), obj(obj) {} |
|
|
92 |
SbHashEntry(const Key & key, const Type & obj, cc_memalloc *memhandler) |
93 |
: key(key), obj(obj), memhandler(memhandler) {} |
92 |
|
94 |
|
93 |
Key key; |
95 |
Key key; |
94 |
Type obj; |
96 |
Type obj; |
Lines 218-224
Link Here
|
218 |
/* Key not already in the hash table; insert a new |
220 |
/* Key not already in the hash table; insert a new |
219 |
* entry as the first element in the bucket |
221 |
* entry as the first element in the bucket |
220 |
*/ |
222 |
*/ |
221 |
entry = new (this->memhandler) SbHashEntry<Type, Key>(key, obj); |
223 |
entry = new (this->memhandler) SbHashEntry<Type, Key>(key, obj, this->memhandler); |
222 |
entry->next = this->buckets[i]; |
224 |
entry->next = this->buckets[i]; |
223 |
this->buckets[i] = entry; |
225 |
this->buckets[i] = entry; |