X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/9bfa71c7201013012f9aba67044617f1739bd358..79853b8925152a5b89d3f8f44d64ffaf284a0196:/src/surf/PropertyHolder.cpp diff --git a/src/surf/PropertyHolder.cpp b/src/surf/PropertyHolder.cpp index 48f372fb52..2eda708ce0 100644 --- a/src/surf/PropertyHolder.cpp +++ b/src/surf/PropertyHolder.cpp @@ -19,19 +19,19 @@ PropertyHolder::~PropertyHolder() { const char *PropertyHolder::getProperty(const char*key) { if (properties_ == nullptr) return nullptr; - return (const char*) xbt_dict_get_or_null(properties_,key); + return static_cast(xbt_dict_get_or_null(properties_,key)); } /** @brief Change the value of a given key in the property set */ void PropertyHolder::setProperty(const char*key, const char*value) { - if (!properties_) + if (not properties_) properties_ = xbt_dict_new_homogeneous(xbt_free_f); xbt_dict_set(properties_, key, xbt_strdup(value), nullptr); } /** @brief Return the whole set of properties. Don't mess with it, dude! */ xbt_dict_t PropertyHolder::getProperties() { - if (!properties_) + if (not properties_) properties_ = xbt_dict_new_homogeneous(xbt_free_f); return properties_; }