diff --git a/include/DOM/Simple/DocumentImpl.hpp b/include/DOM/Simple/DocumentImpl.hpp index fb4971fc..fad188b0 100644 --- a/include/DOM/Simple/DocumentImpl.hpp +++ b/include/DOM/Simple/DocumentImpl.hpp @@ -433,7 +433,7 @@ class DocumentImpl : public DOM::Document_impl, virtual DOMNode_implT* removeChild(DOMNode_implT* oldChild) { - if((documentType_ == oldChild)) + if(documentType_ == oldChild) throw DOM::DOMException(DOM::DOMException::HIERARCHY_REQUEST_ERR); DOMNode_implT* result = NodeWithChildrenT::removeChild(oldChild);