Skip to content

Commit 8e99272

Browse files
author
Daniel Kroening
committed
use ranged for
1 parent af31813 commit 8e99272

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

src/solvers/prop/prop_conv_store.cpp

+4-10
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,14 @@ literalt prop_conv_storet::convert(const exprt &expr)
3131

3232
void prop_conv_storet::constraintst::replay(prop_convt &dest) const
3333
{
34-
for(constraint_listt::const_iterator
35-
it=constraint_list.begin();
36-
it!=constraint_list.end();
37-
it++)
38-
it->replay(dest);
34+
for(const auto &c : constraint_list)
35+
c.replay(dest);
3936
}
4037

4138
void prop_conv_storet::constraintst::print(std::ostream &out) const
4239
{
43-
for(constraint_listt::const_iterator
44-
it=constraint_list.begin();
45-
it!=constraint_list.end();
46-
it++)
47-
it->print(out);
40+
for(const auto &c : constraint_list)
41+
c.print(out);
4842
}
4943

5044
void prop_conv_storet::constraintt::replay(prop_convt &dest) const

0 commit comments

Comments
 (0)