Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of github.com:simgrid/simgrid
[simgrid.git] / src / surf / sg_platf.cpp
index af9b3eb..9095e59 100644 (file)
@@ -122,7 +122,7 @@ static void sg_platf_new_link(const simgrid::kernel::routing::LinkCreationArgs*
     for (auto const& elm : *args->properties)
       props.insert({elm.first, elm.second});
 
-  simgrid::s4u::Link* link =
+  const simgrid::s4u::Link* link =
       routing_get_current()->create_link(link_name, args->bandwidths, args->latency, args->policy, &props);
 
   simgrid::kernel::resource::LinkImpl* l = link->get_impl();
@@ -272,7 +272,7 @@ void sg_platf_new_cluster(simgrid::kernel::routing::ClusterCreationArgs* cluster
   XBT_DEBUG("<router id=\"%s\"/>", cluster->router_id.c_str());
   if (cluster->router_id.empty())
     cluster->router_id = std::string(cluster->prefix) + cluster->id + "_router" + cluster->suffix;
-  current_as->router_ = sg_platf_new_router(cluster->router_id, NULL);
+  current_as->router_ = sg_platf_new_router(cluster->router_id, nullptr);
 
   //Make the backbone
   if ((cluster->bb_bw > 0) || (cluster->bb_lat > 0)) {