Commit 30beecf7 authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

graph_blockmodel.hh: use range-based for loop

parent dde178cb
Pipeline #44 passed with stage
......@@ -1331,10 +1331,10 @@ public:
void clear()
{
for (size_t i = 0; i < _entries.size(); ++i)
for (const auto& rs : _entries)
{
size_t r = _entries[i].first;
size_t s = _entries[i].second;
size_t r = rs.first;
size_t s = rs.second;
_r_field_t[r] = _nr_field_t[r] = _null;
_r_field_t[s] = _nr_field_t[s] = _null;
if (is_directed::apply<Graph>::type::value)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment