X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f23b0fb864cb60978c1fcfd48d50f62dd054fe31..c4f0716bba4bda0483e7a7c141417ace93d3c180:/src/s4u/s4u_Netzone.cpp diff --git a/src/s4u/s4u_Netzone.cpp b/src/s4u/s4u_Netzone.cpp index c9dc1bd922..cc6071c322 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(const char* key) +const char* NetZone::get_property(std::string key) { return properties_.at(key).c_str(); } -void NetZone::set_property(const char* key, const char* value) +void NetZone::set_property(std::string key, std::string value) { simgrid::simix::simcall([this, key, value] { properties_[key] = value; }); }