Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
tidy up PropertyHolder
[simgrid.git] / src / surf / sg_platf.cpp
index 318a719..e57d0d0 100644 (file)
@@ -646,8 +646,8 @@ void sg_platf_new_Zone_set_properties(std::unordered_map<std::string, std::strin
 {
   xbt_assert(current_routing, "Cannot set properties of the current Zone: none under construction");
 
-  for (auto kv = props->begin(); kv != props->end(); ++kv)
-    current_routing->get_iface()->set_property(kv->first, kv->second);
+  if (props)
+    current_routing->set_properties(*props);
 }
 
 /**