Skip to content

Commit 9938747

Browse files
committed
Address comments
1 parent 8f4f424 commit 9938747

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/analyses/goto_check.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,9 +342,9 @@ void goto_checkt::enum_range_check(const exprt &expr, const guardt &guard)
342342
const c_enum_typet::memberst enum_values = c_enum_type.members();
343343

344344
std::vector<exprt> disjuncts;
345-
for(auto it = enum_values.begin(); it != enum_values.end(); ++it)
345+
for(const auto it : enum_values)
346346
{
347-
const constant_exprt val = constant_exprt(it->get_value(), c_enum_tag_type);
347+
const constant_exprt val{it.get_value(), c_enum_tag_type};
348348
disjuncts.push_back(equal_exprt(expr, val));
349349
}
350350

0 commit comments

Comments
 (0)