xml-xalan-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbert...@apache.org
Subject cvs commit: xml-xalan/c/src/xalanc/DOMSupport DOMServices.cpp
Date Thu, 23 Oct 2003 23:13:00 GMT
dbertoni    2003/10/23 16:13:00

  Modified:    c/src/xalanc/DOMSupport DOMServices.cpp
  Log:
  Use getFirstChild()/getNextSibling() instead of getChildNodes().
  
  Revision  Changes    Path
  1.5       +2 -14     xml-xalan/c/src/xalanc/DOMSupport/DOMServices.cpp
  
  Index: DOMServices.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/xalanc/DOMSupport/DOMServices.cpp,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- DOMServices.cpp	19 Sep 2003 21:05:20 -0000	1.4
  +++ DOMServices.cpp	23 Oct 2003 23:13:00 -0000	1.5
  @@ -394,14 +394,8 @@
   			const XalanDocumentFragment&	documentFragment,
   			XalanDOMString&					data)
   {
  -	const XalanNodeList* const	nl = documentFragment.getChildNodes();
  -	assert(nl != 0);
  -
  -	const unsigned int	n = nl->getLength();
  -
  -	for(unsigned int i = 0; i < n; ++i)
  +	for(const XalanNode* child = documentFragment.getFirstChild(); child != 0; child = child->getNextSibling())
   	{
  -		const XalanNode* const		child = nl->item(i);
   		assert(child != 0);
   
   		getChildData(child, data);
  @@ -602,14 +596,8 @@
   			FormatterListener&				formatterListener,
   			MemberFunctionPtr				function)
   {
  -	const XalanNodeList* const	nl = documentFragment.getChildNodes();
  -	assert(nl != 0);
  -
  -	const unsigned int	n = nl->getLength();
  -
  -	for(unsigned int i = 0; i < n; ++i)
  +	for(const XalanNode* child = documentFragment.getFirstChild(); child != 0; child = child->getNextSibling())
   	{
  -		const XalanNode* const		child = nl->item(i);
   		assert(child != 0);
   
   		getChildData(child, formatterListener, function);
  
  
  

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


Mime
View raw message