Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Deprecate xbt_dict_new()
[simgrid.git] / src / surf / xml / surfxml_sax_cb.cpp
index b6d6075..c8c643a 100644 (file)
@@ -473,8 +473,8 @@ void STag_surfxml_prop()
   }
   else{
     if (!current_property_set)
-       current_property_set = xbt_dict_new(); // Maybe, it should raise an error
-    xbt_dict_set(current_property_set, A_surfxml_prop_id, xbt_strdup(A_surfxml_prop_value), xbt_free_f);
+      current_property_set = xbt_dict_new_homogeneous(&xbt_free_f); // Maybe, it should raise an error
+    xbt_dict_set(current_property_set, A_surfxml_prop_id, xbt_strdup(A_surfxml_prop_value), nullptr);
     XBT_DEBUG("add prop %s=%s into current property set", A_surfxml_prop_id, A_surfxml_prop_value);
   }
 }