X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/96cedde3cdbc0b8ffc3f096a1b65d021b0226f99..c7895d72bc8dfe43a87706f08f8ec5ea46664de9:/src/s4u/s4u_Netzone.cpp diff --git a/src/s4u/s4u_Netzone.cpp b/src/s4u/s4u_Netzone.cpp index 211a90d360..f31917b57e 100644 --- a/src/s4u/s4u_Netzone.cpp +++ b/src/s4u/s4u_Netzone.cpp @@ -33,13 +33,13 @@ 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] = value; }); + simgrid::simix::simcall([this, key, value] { properties_[key] = std::move(value); }); } /** @brief Returns the list of direct children (no grand-children) */