X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c1b3e440de2150420b08c0bc55a125a0c9eb86bc..1b94b2100679d5b4355fccb6d22927efc12ca5bc:/src/s4u/s4u_Netzone.cpp?ds=sidebyside diff --git a/src/s4u/s4u_Netzone.cpp b/src/s4u/s4u_Netzone.cpp index ddb8816b00..f31917b57e 100644 --- a/src/s4u/s4u_Netzone.cpp +++ b/src/s4u/s4u_Netzone.cpp @@ -33,11 +33,11 @@ std::unordered_map* NetZone::get_properties() } /** Retrieve the property value (or nullptr if not set) */ -const char* NetZone::get_property(std::string key) +const char* NetZone::get_property(const std::string& key) { return properties_.at(key).c_str(); } -void NetZone::set_property(std::string key, std::string value) +void NetZone::set_property(const std::string& key, std::string value) { simgrid::simix::simcall([this, key, value] { properties_[key] = std::move(value); }); }