Skip to content

Commit 45ea585

Browse files
committed
Declare iterator using auto
This removes the need for an excessively vebose type, matches C++11 style and is suggested by clang-tidy.
1 parent 6b12425 commit 45ea585

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/goto-programs/mm_io.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,8 @@ void mm_io(
4040
goto_functionst::goto_functiont &goto_function,
4141
const namespacet &ns)
4242
{
43-
for(goto_programt::instructionst::iterator it=
44-
goto_function.body.instructions.begin();
45-
it!=goto_function.body.instructions.end();
43+
for(auto it = goto_function.body.instructions.begin();
44+
it != goto_function.body.instructions.end();
4645
it++)
4746
{
4847
if(!it->is_assign())

0 commit comments

Comments
 (0)