You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by tn...@apache.org on 2002/09/23 22:01:51 UTC

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

tng         2002/09/23 13:01:51

  Modified:    c/src/xercesc/dom/impl DOMParentNode.cpp
  Log:
  DOM: Check isSameNode before checking isEqual
  
  Revision  Changes    Path
  1.7       +4 -1      xml-xerces/c/src/xercesc/dom/impl/DOMParentNode.cpp
  
  Index: DOMParentNode.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/dom/impl/DOMParentNode.cpp,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- DOMParentNode.cpp	9 Aug 2002 21:38:22 -0000	1.6
  +++ DOMParentNode.cpp	23 Sep 2002 20:01:51 -0000	1.7
  @@ -404,6 +404,9 @@
   
   bool DOMParentNode::isEqualNode(const DOMNode* arg)
   {
  +    if (arg && castToNodeImpl(this)->isSameNode(arg))
  +        return true;
  +
       if (arg && castToNodeImpl(this)->isEqualNode(arg))
       {
           DOMNode *kid, *argKid;
  
  
  

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