You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by am...@apache.org on 2004/12/30 15:54:25 UTC

cvs commit: xml-xerces/c/src/xercesc/dom/impl DOMDocumentImpl.cpp

amassari    2004/12/30 06:54:25

  Modified:    c/src/xercesc/dom/impl DOMDocumentImpl.cpp
  Log:
  Delete the user data informations only after invoking all the NODE_DELETED handlers (jira# 620)
  
  Revision  Changes    Path
  1.60      +4 -5      xml-xerces/c/src/xercesc/dom/impl/DOMDocumentImpl.cpp
  
  Index: DOMDocumentImpl.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/dom/impl/DOMDocumentImpl.cpp,v
  retrieving revision 1.59
  retrieving revision 1.60
  diff -u -r1.59 -r1.60
  --- DOMDocumentImpl.cpp	28 Dec 2004 17:31:19 -0000	1.59
  +++ DOMDocumentImpl.cpp	30 Dec 2004 14:54:25 -0000	1.60
  @@ -1251,11 +1251,10 @@
                   const XMLCh* userKey = fUserDataTableKeys.getValueForId(key2);
                   handler->handle(operation, userKey, data, src, dst);
               }
  -
  -            // if the operation is deleted, we in fact should remove the data from the table
  -            if (operation == DOMUserDataHandler::NODE_DELETED)
  -                fUserDataTable->removeKey((void*)n,key2);
           }
  +        // if the operation is NODE_DELETED, we in fact should remove the data from the table
  +        if (operation == DOMUserDataHandler::NODE_DELETED)
  +            fUserDataTable->removeKey((void*)n);
       }
   }
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org