clean up the depth tracking a bit
diff --git a/tinyxml2.cpp b/tinyxml2.cpp
index 74265fe..214dbb5 100755
--- a/tinyxml2.cpp
+++ b/tinyxml2.cpp
@@ -2384,21 +2384,18 @@
ParseDeep(p, 0, &_parseCurLineNum );
}
-bool XMLDocument::PushDepth()
+void XMLDocument::PushDepth()
{
_parsingDepth++;
if (_parsingDepth == TINYXML2_MAX_ELEMENT_DEPTH) {
SetError(XMLError::XML_ELEMENT_DEPTH_EXCEEDED, _parseCurLineNum, "Element nesting is too deep." );
- return false;
}
- return true;
}
-bool XMLDocument::PopDepth()
+void XMLDocument::PopDepth()
{
TIXMLASSERT(_parsingDepth > 0);
--_parsingDepth;
- return true;
}
XMLPrinter::XMLPrinter( FILE* file, bool compact, int depth ) :