From dcbb59b2e85a3fe38ab685540f8f5c8af48676c4 Mon Sep 17 00:00:00 2001 From: jez Date: Sat, 11 Dec 2010 01:12:03 +0000 Subject: [PATCH] Default setNodeValue is to do nothing. --- include/DOM/Simple/EntityReferenceImpl.hpp | 5 ----- include/DOM/Simple/NodeImpl.hpp | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/include/DOM/Simple/EntityReferenceImpl.hpp b/include/DOM/Simple/EntityReferenceImpl.hpp index 50f5ecaf..545e7969 100644 --- a/include/DOM/Simple/EntityReferenceImpl.hpp +++ b/include/DOM/Simple/EntityReferenceImpl.hpp @@ -37,11 +37,6 @@ class EntityReferenceImpl : public DOM::EntityReference_implcreateEntityReference(name_); diff --git a/include/DOM/Simple/NodeImpl.hpp b/include/DOM/Simple/NodeImpl.hpp index aa43f1a9..c3effb50 100644 --- a/include/DOM/Simple/NodeImpl.hpp +++ b/include/DOM/Simple/NodeImpl.hpp @@ -67,7 +67,7 @@ class NodeImpl : virtual public DOM::Node_impl virtual const stringT& getNodeName() const = 0; virtual const stringT& getNodeValue() const { return ownerDoc_->empty_string(); } - virtual void setNodeValue(const stringT& /*nodeValue*/) { throwIfReadOnly(); } + virtual void setNodeValue(const stringT& /*nodeValue*/) { } virtual DOM::Node_base::Type getNodeType() const = 0;