File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -150,23 +150,23 @@ void xmlt::do_indent(std::ostream &out, unsigned indent)
150
150
out << std::string (indent, ' ' );
151
151
}
152
152
153
- xmlt::elementst::const_iterator xmlt::find (const std::string &name ) const
153
+ xmlt::elementst::const_iterator xmlt::find (const std::string &key ) const
154
154
{
155
155
for (elementst::const_iterator it=elements.begin ();
156
156
it!=elements.end ();
157
157
it++)
158
- if (it->name ==name )
158
+ if (it->name == key )
159
159
return it;
160
160
161
161
return elements.end ();
162
162
}
163
163
164
- xmlt::elementst::iterator xmlt::find (const std::string &name )
164
+ xmlt::elementst::iterator xmlt::find (const std::string &key )
165
165
{
166
166
for (elementst::iterator it=elements.begin ();
167
167
it!=elements.end ();
168
168
it++)
169
- if (it->name ==name )
169
+ if (it->name == key )
170
170
return it;
171
171
172
172
return elements.end ();
Original file line number Diff line number Diff line change @@ -32,8 +32,8 @@ class xmlt
32
32
attributest attributes;
33
33
elementst elements;
34
34
35
- elementst::const_iterator find (const std::string &name ) const ;
36
- elementst::iterator find (const std::string &name );
35
+ elementst::const_iterator find (const std::string &key ) const ;
36
+ elementst::iterator find (const std::string &key );
37
37
38
38
void set_attribute (
39
39
const std::string &attribute,
@@ -83,10 +83,10 @@ class xmlt
83
83
return " " ;
84
84
}
85
85
86
- xmlt &new_element (const std::string &name )
86
+ xmlt &new_element (const std::string &key )
87
87
{
88
88
elements.push_back (xmlt ());
89
- elements.back ().name =name ;
89
+ elements.back ().name = key ;
90
90
return elements.back ();
91
91
}
92
92
You can’t perform that action at this time.
0 commit comments