use pre-increment in iterator loops

This commit is contained in:
artemp 2014-07-08 16:38:15 +01:00
parent 81f7e69088
commit 888ae11309

View file

@ -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)
{