Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Revise to fool cppcheck.
[simgrid.git] / src / instr / instr_paje_types.cpp
index 335cb12b5ae59127f40e5fb943e8f33b016e7795..ff0c4b5b729f50b4f03a9cd40a963d2629cd07bd 100644 (file)
@@ -22,7 +22,7 @@ Type::Type(const std::string& name, const std::string& alias, const std::string&
     THROWF(tracing_error, 0, "can't create a new type with no name or alias");
 
   if (father != nullptr){
-    father->children_.emplace(alias, this);
+    father->children_[alias].reset(this);
     XBT_DEBUG("new type %s, child of %s", get_cname(), father->get_cname());
   }
   if (trace_format == simgrid::instr::TraceFormat::Paje) {