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/03/15 17:29:56 UTC

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

tng         02/03/15 08:29:56

  Modified:    c/src/xercesc/dom NodeIteratorImpl.cpp
  Log:
  [Bug 6888] NodeIterator.  Retrofit this typo that was applied to Xerces-J, although this function "matchNodeOrParent" is not used in Xerces-C++....
  
  Revision  Changes    Path
  1.3       +10 -1     xml-xerces/c/src/xercesc/dom/NodeIteratorImpl.cpp
  
  Index: NodeIteratorImpl.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/dom/NodeIteratorImpl.cpp,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- NodeIteratorImpl.cpp	4 Feb 2002 20:03:48 -0000	1.2
  +++ NodeIteratorImpl.cpp	15 Mar 2002 16:29:56 -0000	1.3
  @@ -56,6 +56,9 @@
   
   /*
    * $Log: NodeIteratorImpl.cpp,v $
  + * Revision 1.3  2002/03/15 16:29:56  tng
  + * [Bug 6888] NodeIterator.  Retrofit this typo that was applied to Xerces-J, although this function "matchNodeOrParent" is not used in Xerces-C++....
  + *
    * Revision 1.2  2002/02/04 20:03:48  tng
    * Add DOM Level missing functions:
    * 1. NodeIterator::getRoot
  @@ -331,7 +334,7 @@
   DOM_Node NodeIteratorImpl::matchNodeOrParent (DOM_Node node) {
   		DOM_Node result;
   
  -    for (DOM_Node n = node; n != fRoot; n = n.getParentNode()) {
  +    for (DOM_Node n = fCurrentNode; n != fRoot; n = n.getParentNode()) {
           if (node == n) return n;
       }
   
  
  
  

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