X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c540b8009e2e13d461ecaa7cf17f68950b3539fb..7c047878cb2905079a6a0544f1a15134ae3ab3a6:/src/surf/PropertyHolder.cpp?ds=sidebyside diff --git a/src/surf/PropertyHolder.cpp b/src/surf/PropertyHolder.cpp index 97331c6632..b57e536e44 100644 --- a/src/surf/PropertyHolder.cpp +++ b/src/surf/PropertyHolder.cpp @@ -18,10 +18,10 @@ PropertyHolder::~PropertyHolder() { xbt_dict_free(&properties_); } -/** @brief Return the property associated to the provided key (or NULL if not existing) */ +/** @brief Return the property associated to the provided key (or nullptr if not existing) */ const char *PropertyHolder::getProperty(const char*key) { - if (properties_ == NULL) - return NULL; + if (properties_ == nullptr) + return nullptr; return (const char*) xbt_dict_get_or_null(properties_,key); }