Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Minor sonar issues.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 8 Oct 2020 09:44:08 +0000 (11:44 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 8 Oct 2020 14:26:49 +0000 (16:26 +0200)
src/surf/sg_platf.cpp
src/surf/xml/surfxml_sax_cb.cpp

index e1f4d6b..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();
index eebe69b..c486699 100644 (file)
@@ -735,7 +735,7 @@ void STag_surfxml_trace___connect()
 void STag_surfxml_AS()
 {
   AX_surfxml_zone_id = AX_surfxml_AS_id;
-  AX_surfxml_zone_routing = (AT_surfxml_zone_routing)AX_surfxml_AS_routing;
+  AX_surfxml_zone_routing = AX_surfxml_AS_routing;
   STag_surfxml_zone();
 }