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;
if (cmp == 0) {
// Find the whole range:
- size_type first = cursor;
+ first = cursor;
while (first != 0 && this->global_variables[first - 1].name == name)
first--;
size_type size = this->global_variables.size();
- size_type last = cursor;
+ last = cursor;
while (last != size - 1 && this->global_variables[last + 1].name == name)
last++;