Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Whenever possible, use std::move() for parameters (mostly std::string).
[simgrid.git] / src / surf / PropertyHolder.cpp
index 53232e0..542ce0b 100644 (file)
@@ -26,7 +26,7 @@ void PropertyHolder::set_property(std::string key, std::string value)
 {
   if (not properties_)
     properties_ = new std::unordered_map<std::string, std::string>;
-  (*properties_)[key] = value;
+  (*properties_)[key] = std::move(value);
 }
 
 /** @brief Return the whole set of properties. Don't mess with it, dude! */