use pre-increment in iterator loops
This commit is contained in:
parent
81f7e69088
commit
888ae11309
1 changed files with 1 additions and 1 deletions
|
@ -265,7 +265,7 @@ xml_node & xml_node::get_child(std::string const& name)
|
|||
{
|
||||
std::list<xml_node>::iterator itr = children_.begin();
|
||||
std::list<xml_node>::iterator end = children_.end();
|
||||
for (; itr != end; itr++)
|
||||
for (; itr != end; ++itr)
|
||||
{
|
||||
if (!(itr->is_text_) && itr->name_ == name)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue