From 231c509ec3b2358234784557440a8d4419e99b10 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Wed, 15 Jan 2020 11:31:38 +0100 Subject: [PATCH] [sonar] Add const qualifier. --- src/surf/sg_platf.cpp | 2 +- src/surf/xml/platf_private.hpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/surf/sg_platf.cpp b/src/surf/sg_platf.cpp index 22d8507240..43a1913307 100644 --- a/src/surf/sg_platf.cpp +++ b/src/surf/sg_platf.cpp @@ -67,7 +67,7 @@ void sg_platf_exit() { } /** @brief Add a host to the current AS */ -void sg_platf_new_host(simgrid::kernel::routing::HostCreationArgs* args) +void sg_platf_new_host(const simgrid::kernel::routing::HostCreationArgs* args) { std::map props; if (args->properties) { diff --git a/src/surf/xml/platf_private.hpp b/src/surf/xml/platf_private.hpp index d06bfe0171..71a639858f 100644 --- a/src/surf/xml/platf_private.hpp +++ b/src/surf/xml/platf_private.hpp @@ -203,7 +203,8 @@ sg_platf_new_Zone_begin(const simgrid::kernel::routing::ZoneCreationArgs* zone); XBT_PUBLIC void sg_platf_new_Zone_set_properties(const std::unordered_map* props); XBT_PUBLIC void sg_platf_new_Zone_seal(); // That Zone is fully described -XBT_PUBLIC void sg_platf_new_host(simgrid::kernel::routing::HostCreationArgs* host); // Add a host to the current Zone +XBT_PUBLIC void +sg_platf_new_host(const simgrid::kernel::routing::HostCreationArgs* host); // Add a host to the current Zone XBT_PUBLIC void sg_platf_new_hostlink(const simgrid::kernel::routing::HostLinkCreationArgs* h); // Add a host_link to the current Zone XBT_PUBLIC void -- 2.20.1