Skip to content

Commit 747bb63

Browse files
committed
Use auto to declare iterators in goto_convertt::finish_goto
1 parent 1caa6ae commit 747bb63

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/goto-programs/goto_convert.cpp

+2-5
Original file line numberDiff line numberDiff line change
@@ -251,9 +251,7 @@ void goto_convertt::finish_gotos(goto_programt &dest, const irep_idt &mode)
251251
if(i.is_start_thread())
252252
{
253253
const irep_idt &goto_label = i.code().get(ID_destination);
254-
255-
labelst::const_iterator l_it=
256-
targets.labels.find(goto_label);
254+
const auto l_it = targets.labels.find(goto_label);
257255

258256
if(l_it == targets.labels.end())
259257
{
@@ -267,8 +265,7 @@ void goto_convertt::finish_gotos(goto_programt &dest, const irep_idt &mode)
267265
else if(i.is_incomplete_goto())
268266
{
269267
const irep_idt &goto_label = i.code().get(ID_destination);
270-
271-
labelst::const_iterator l_it=targets.labels.find(goto_label);
268+
const auto l_it = targets.labels.find(goto_label);
272269

273270
if(l_it == targets.labels.end())
274271
{

0 commit comments

Comments
 (0)