# | Line 25 | Line 25 | |
---|---|---|
25 | ||
26 | #include "utils/PropertyMap.hpp" | |
27 | #include <cassert> | |
28 | + | #include <utility> |
29 | ||
30 | namespace oopse { | |
31 | ||
# | Line 39 | Line 40 | void PropertyMap::addProperty(GenericData* genData){ | |
40 | iter = propMap_.find(genData->getID()); | |
41 | ||
42 | if (iter == propMap_.end()){ | |
43 | < | propMap_.insert(make_pair(genData->getID(), genData)); |
43 | > | propMap_.insert(std::make_pair(genData->getID(), genData)); |
44 | } else { | |
45 | delete iter->second; | |
46 | iter->second = genData; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |