Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use const& for std::string parameter (sonar, again).
[simgrid.git] / src / kernel / resource / Model.cpp
index 4a25208..b37c3b8 100644 (file)
@@ -12,7 +12,9 @@ namespace simgrid {
 namespace kernel {
 namespace resource {
 
-Model::Model(std::string name) : maxmin_system_(nullptr), name_(name) {}
+Model::Model(const std::string& name) : name_(name)
+{
+}
 
 Model::~Model() =
     default; // Don't move this declaration to the header, or it will break external projects such as SimGrid-FMI