X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b87fc0829538ec066fd077e6c30ee6270b8abd78..77bbf3027c4240a2e833209a3a3f186589da8577:/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);