diff --git a/DOM/Simple/DocumentImpl.h b/DOM/Simple/DocumentImpl.h index 923352d2..54edf2ff 100644 --- a/DOM/Simple/DocumentImpl.h +++ b/DOM/Simple/DocumentImpl.h @@ -277,6 +277,8 @@ class DocumentImpl : public DOM::Document_impl, case DOM::Node::COMMENT_NODE: newNode = createComment(importedNode->getNodeValue()); break; + default: + throw std::runtime_error("Bad node type value in importNode"); } // switch if(deep)