From: Kim Nguyễn Date: Wed, 17 Oct 2012 11:12:14 +0000 (+0200) Subject: Remove a double declaration of the same local variable. X-Git-Url: http://git.nguyen.vg/gitweb/?p=SXSI%2FXMLTree.git;a=commitdiff_plain;h=97d7dd2782da8997bf185469f3d6ef722aabe3a0 Remove a double declaration of the same local variable. --- diff --git a/xml-tree-inc.hpp b/xml-tree-inc.hpp index 19745ed..faf4538 100644 --- a/xml-tree-inc.hpp +++ b/xml-tree-inc.hpp @@ -167,7 +167,7 @@ inline xml_tree::node_t xml_tree::tagged_next_close(xml_tree::node_t x, xml_tree::tag_t label) const { xml_tree::node_t i=x; - for(xml_tree::node_t i = x+1; i < std::min(x+100, this->par->n); i++) + for(i = x+1; i < std::min(x+100, this->par->n); i++) if (tag(i) == label) return i;