File tree 2 files changed +4
-10
lines changed 2 files changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -98,14 +98,11 @@ void value_sett::output(
98
98
const namespacet &ns,
99
99
std::ostream &out) const
100
100
{
101
- for (valuest::const_iterator
102
- v_it=values.begin ();
103
- v_it!=values.end ();
104
- v_it++)
101
+ for (const auto &values_entry : values)
105
102
{
106
103
irep_idt identifier, display_name;
107
104
108
- const entryt &e=v_it-> second ;
105
+ const entryt &e = values_entry. second ;
109
106
110
107
if (has_prefix (id2string (e.identifier ), " value_set::dynamic_object" ))
111
108
{
Original file line number Diff line number Diff line change @@ -41,14 +41,11 @@ void value_sets_to_xml(
41
41
xmlt &i=dest.new_element (" instruction" );
42
42
i.new_element ()=::xml (location);
43
43
44
- for (value_sett::valuest::const_iterator
45
- v_it=value_set.values .begin ();
46
- v_it!=value_set.values .end ();
47
- v_it++)
44
+ for (const auto &values_entry : value_set.values )
48
45
{
49
46
xmlt &var=i.new_element (" variable" );
50
47
var.new_element (" identifier" ).data =
51
- id2string (v_it-> first );
48
+ id2string (values_entry. first );
52
49
53
50
#if 0
54
51
const value_sett::expr_sett &expr_set=
You can’t perform that action at this time.
0 commit comments