X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c1b3e440de2150420b08c0bc55a125a0c9eb86bc..9e3b2f1d55a07271c05db2ed5b3fec27561097f9:/include/simgrid/s4u/NetZone.hpp diff --git a/include/simgrid/s4u/NetZone.hpp b/include/simgrid/s4u/NetZone.hpp index 41971ae176..db5854b8e3 100644 --- a/include/simgrid/s4u/NetZone.hpp +++ b/include/simgrid/s4u/NetZone.hpp @@ -54,8 +54,8 @@ public: std::vector get_children(); /** Retrieve the property value (or nullptr if not set) */ - const char* get_property(std::string key); - void set_property(std::string key, std::string value); + const char* get_property(const std::string& key); + void set_property(const std::string& key, std::string value); /* Add content to the netzone, at parsing time. It should be sealed afterward. */ int add_component(kernel::routing::NetPoint* elm); /* A host, a router or a netzone, whatever */