X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d3a5b5e5113cf4438faf96f6dc442240c5b9d085..403af5e6247ce6452b721f418a5b41e4548efac4:/src/surf/PropertyHolder.cpp diff --git a/src/surf/PropertyHolder.cpp b/src/surf/PropertyHolder.cpp index e7657a277d..629870643b 100644 --- a/src/surf/PropertyHolder.cpp +++ b/src/surf/PropertyHolder.cpp @@ -13,7 +13,8 @@ PropertyHolder::~PropertyHolder() { } /** @brief Return the property associated to the provided key (or nullptr if not existing) */ -const char *PropertyHolder::getProperty(const char*key) { +const char* PropertyHolder::getProperty(std::string key) +{ if (properties_ == nullptr) return nullptr; auto prop = properties_->find(key);