]> AND Public Git Repository - simgrid.git/blobdiff - src/surf/PropertyHolder.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
inline a stupid function
[simgrid.git] / src / surf / PropertyHolder.cpp
index 97331c6632e0e6de2b29c901a5b3b9daf98ab8e7..53f09d5b29c2a930160a802b587bad6931d34cb3 100644 (file)
@@ -9,19 +9,16 @@
 namespace simgrid {
 namespace surf {
 
-PropertyHolder::PropertyHolder(xbt_dict_t props)
-: properties_(props)
-{
-}
+PropertyHolder::PropertyHolder() = default;
 
 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);
 }