return nullptr;
}
-simgrid::mc::Variable* ObjectInformation::find_variable(const char* name) const
+const simgrid::mc::Variable* ObjectInformation::find_variable(const char* name) const
{
- for (simgrid::mc::Variable& variable : this->global_variables)
+ for (simgrid::mc::Variable const& variable : this->global_variables)
if(variable.name == name)
return &variable;
return nullptr;