Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tiago Peixoto
graph-tool
Commits
30beecf7
Commit
30beecf7
authored
Oct 10, 2015
by
Tiago Peixoto
Browse files
graph_blockmodel.hh: use range-based for loop
parent
dde178cb
Pipeline
#44
passed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/graph/community/graph_blockmodel.hh
View file @
30beecf7
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment