From daed1440ec3a342d7bd56ff2a1f7427f3f81ede5 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Thu, 8 Oct 2020 11:44:08 +0200 Subject: [PATCH 1/1] Minor sonar issues. --- src/surf/sg_platf.cpp | 2 +- src/surf/xml/surfxml_sax_cb.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(); } -- 2.20.1