bool allocatedInCMM = false) :
ContextObj(allocatedInCMM, context),
d_key(key),
- d_data(),
+ d_data(data),
d_map(NULL),
d_noTrash(allocatedInCMM) {
Element* obj;
if(i == d_map.end()) {// create new object
obj = new(true) Element(d_context, this, k, Data());
- d_map[k] = obj;
+ d_map.insert(std::make_pair(k, obj));
} else {
obj = (*i).second;
}
if(i == d_map.end()) {// create new object
Element* obj = new(true) Element(d_context, this, k, d);
- d_map[k] = obj;
+ d_map.insert(std::make_pair(k, obj));
return true;
} else {
(*i).second->set(d);
Element* obj = new(true) Element(d_context, this, k, d,
true /* atLevelZero */);
- d_map[k] = obj;
+ d_map.insert(std::make_pair(k, obj));
}
// FIXME: no erase(), too much hassle to implement efficiently...