File tree 2 files changed +6
-13
lines changed
2 files changed +6
-13
lines changed Original file line number Diff line number Diff line change @@ -99,14 +99,11 @@ void value_sett::output(
99
99
const namespacet &ns,
100
100
std::ostream &out) const
101
101
{
102
- for (valuest::const_iterator
103
- v_it=values.begin ();
104
- v_it!=values.end ();
105
- v_it++)
102
+ for (const auto &values_entry : values)
106
103
{
107
104
irep_idt identifier, display_name;
108
105
109
- const entryt &e=v_it-> second ;
106
+ const entryt &e = values_entry. second ;
110
107
111
108
if (has_prefix (id2string (e.identifier ), " value_set::dynamic_object" ))
112
109
{
Original file line number Diff line number Diff line change @@ -41,16 +41,12 @@ 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
- var.new_element (" identifier" ).data =
51
- id2string (v_it->first );
47
+ var.new_element (" identifier" ).data = id2string (values_entry.first );
52
48
53
- #if 0
49
+ #if 0
54
50
const value_sett::expr_sett &expr_set=
55
51
v_it->second.expr_set();
56
52
@@ -65,7 +61,7 @@ void value_sets_to_xml(
65
61
var.new_element("value").data=
66
62
xmlt::escape(value_str);
67
63
}
68
- #endif
64
+ #endif
69
65
}
70
66
}
71
67
}
You can’t perform that action at this time.
0 commit comments