Default setNodeValue is to do nothing.

This commit is contained in:
jez 2010-12-11 01:12:03 +00:00
parent 9643b42edd
commit dcbb59b2e8
2 changed files with 1 additions and 6 deletions

View file

@ -37,11 +37,6 @@ class EntityReferenceImpl : public DOM::EntityReference_impl<stringT, string_ada
return name_;
} // getNodeName
virtual void setNodeValue(const stringT& /*x*/)
{
throw DOM::DOMException(DOM::DOMException::NO_MODIFICATION_ALLOWED_ERR);
} // setNodeValue
virtual DOMNode_implT* cloneNode(bool /*deep*/) const
{
return NodeT::ownerDoc_->createEntityReference(name_);

View file

@ -67,7 +67,7 @@ class NodeImpl : virtual public DOM::Node_impl<stringT, string_adaptorT>
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;