From 57564791a30e053f902299763494f09784eec0c3 Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Tue, 6 Jul 2010 12:21:38 +0000 Subject: Minor traverse() refactoring git-svn-id: http://pugixml.googlecode.com/svn/trunk@561 99668b35-9821-0410-8761-19e4c4f06640 --- src/pugixml.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/pugixml.cpp b/src/pugixml.cpp index 79a8fdf..1589eae 100644 --- a/src/pugixml.cpp +++ b/src/pugixml.cpp @@ -3981,9 +3981,9 @@ namespace pugi while (cur && cur != *this); } - if (!walker.end(*this)) return false; - - return true; + assert(walker._depth == -1); + + return walker.end(*this); } unsigned int xml_node::document_order() const -- cgit v1.2.3