summaryrefslogtreecommitdiff
path: root/cpp/src/IceXML/Parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/IceXML/Parser.cpp')
-rw-r--r--cpp/src/IceXML/Parser.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/cpp/src/IceXML/Parser.cpp b/cpp/src/IceXML/Parser.cpp
index 1951361e976..67ed145fbab 100644
--- a/cpp/src/IceXML/Parser.cpp
+++ b/cpp/src/IceXML/Parser.cpp
@@ -265,8 +265,11 @@ IceXML::DocumentBuilder::startElement(const string& name, const Attributes& attr
NodePtr parent = _nodeStack.front();
Element* element = new Element(parent, name, attributes, line, column);
- bool b = parent->addChild(element);
- assert(b);
+#if NDEBUG
+ parent->addChild(element);
+#else
+ assert(parent->addChild(element));
+#endif
_nodeStack.push_front(element);
}