From 888ae113097a4a4224c34c379e4b34bcf7ff3030 Mon Sep 17 00:00:00 2001 From: artemp Date: Tue, 8 Jul 2014 16:38:15 +0100 Subject: [PATCH] use pre-increment in iterator loops --- src/xml_tree.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xml_tree.cpp b/src/xml_tree.cpp index efd94443e..2060162f6 100644 --- a/src/xml_tree.cpp +++ b/src/xml_tree.cpp @@ -265,7 +265,7 @@ xml_node & xml_node::get_child(std::string const& name) { std::list::iterator itr = children_.begin(); std::list::iterator end = children_.end(); - for (; itr != end; itr++) + for (; itr != end; ++itr) { if (!(itr->is_text_) && itr->name_ == name) {