From 65465623a947cfd431852a0560c8d0adc036c034 Mon Sep 17 00:00:00 2001 From: jez_higgins <> Date: Fri, 5 Aug 2005 21:09:00 +0000 Subject: [PATCH] gcc portability fixes --- DOM/Simple/DocumentImpl.h | 2 ++ 1 file changed, 2 insertions(+) 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)