Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[sonar] Add const qualifier.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Wed, 15 Jan 2020 10:31:38 +0000 (11:31 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Wed, 15 Jan 2020 19:42:19 +0000 (20:42 +0100)
src/surf/sg_platf.cpp
src/surf/xml/platf_private.hpp

index 22d8507..43a1913 100644 (file)
@@ -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<std::string, std::string> props;
   if (args->properties) {
index d06bfe0..71a6398 100644 (file)
@@ -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<std::string, std::string>* 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