summaryrefslogtreecommitdiff
path: root/src/pugixml.cpp
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-07-06 12:21:38 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-07-06 12:21:38 +0000
commit57564791a30e053f902299763494f09784eec0c3 (patch)
tree0cbf7f5ae9e7897a7c57eb9fa74793e273c4b538 /src/pugixml.cpp
parentfa16efd4389baf62d7ca9b3491cd1e39cc9d4952 (diff)
Minor traverse() refactoring
git-svn-id: http://pugixml.googlecode.com/svn/trunk@561 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'src/pugixml.cpp')
-rw-r--r--src/pugixml.cpp6
1 files changed, 3 insertions, 3 deletions
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