From: Arnaud Giersch Date: Thu, 8 Oct 2020 09:44:08 +0000 (+0200) Subject: Minor sonar issues. X-Git-Tag: v3.26~367 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/daed1440ec3a342d7bd56ff2a1f7427f3f81ede5?hp=63fa55269d7bc4891b05dc766fd1a024c68383b6 Minor sonar issues. --- diff --git a/src/surf/sg_platf.cpp b/src/surf/sg_platf.cpp index e1f4d6b2c8..9095e590dd 100644 --- a/src/surf/sg_platf.cpp +++ b/src/surf/sg_platf.cpp @@ -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(); diff --git a/src/surf/xml/surfxml_sax_cb.cpp b/src/surf/xml/surfxml_sax_cb.cpp index eebe69b783..c486699284 100644 --- a/src/surf/xml/surfxml_sax_cb.cpp +++ b/src/surf/xml/surfxml_sax_cb.cpp @@ -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(); }