From 3c047bae339f5b227cca86a8172368f36d4910a9 Mon Sep 17 00:00:00 2001 From: Quentin Fiard Date: Sun, 23 Feb 2014 16:49:30 +0000 Subject: [PATCH] Fixed equality comparison with extraneous parentheses --- include/DOM/Simple/DocumentImpl.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);