Skip to content

Commit 5e5bf61

Browse files
committed
Use ranged for to avoid shadowing "it"
Both cleanup (using ranged for) and fix of shadowing.
1 parent e76b6dc commit 5e5bf61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/goto-instrument/concurrency.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ void concurrency_instrumentationt::instrument(
130130
instrument(code.function());
131131

132132
// instrument(code.lhs(), LHS);
133-
Forall_expr(it, code.arguments())
134-
instrument(*it);
133+
for(auto &arg : code.arguments())
134+
instrument(arg);
135135
}
136136
}
137137
}

0 commit comments

Comments
 (0)