mirror of
https://github.com/jezhiggins/arabica
synced 2025-01-30 08:38:15 +01:00
pop exception if trying to remove an item that doesn\'t exist. yay\!
This commit is contained in:
parent
647de72862
commit
16463bbd83
1 changed files with 1 additions and 1 deletions
|
@ -206,7 +206,7 @@ class NamedNodeMapImpl : public DOM::NamedNodeMap_impl<stringT, string_adaptorT>
|
||||||
NodeImplT* removeNode(typename NodeListT::iterator n)
|
NodeImplT* removeNode(typename NodeListT::iterator n)
|
||||||
{
|
{
|
||||||
if(n == nodes_.end())
|
if(n == nodes_.end())
|
||||||
return 0;
|
throw DOM::DOMException(DOM::DOMException::NOT_FOUND_ERR);
|
||||||
NodeImplT* removedNode = *n;
|
NodeImplT* removedNode = *n;
|
||||||
nodes_.erase(n);
|
nodes_.erase(n);
|
||||||
ownerDoc_->orphaned(removedNode);
|
ownerDoc_->orphaned(removedNode);
|
||||||
|
|
Loading…
Add table
Reference in a new issue