You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by db...@apache.org on 2002/10/11 03:57:46 UTC

cvs commit: xml-xalan/c/src/XPath XPath.cpp

dbertoni    2002/10/10 18:57:46

  Modified:    c/src/XPath XPath.cpp
  Log:
  Added some asserts.
  
  Revision  Changes    Path
  1.78      +14 -0     xml-xalan/c/src/XPath/XPath.cpp
  
  Index: XPath.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XPath/XPath.cpp,v
  retrieving revision 1.77
  retrieving revision 1.78
  diff -u -r1.77 -r1.78
  --- XPath.cpp	26 Sep 2002 05:12:33 -0000	1.77
  +++ XPath.cpp	11 Oct 2002 01:57:46 -0000	1.78
  @@ -1840,6 +1840,8 @@
   			int 					/* stepType */,
   			MutableNodeRefList& 	subQueryResults) const
   {
  +	assert(subQueryResults.empty() == true);
  +
   	const XPathExpression&	currentExpression = getExpression();
   
   	// $$ ToDO: Can we reduce this to some call on the
  @@ -1869,6 +1871,7 @@
   			int 					stepType,
   			MutableNodeRefList& 	subQueryResults) const
   {
  +	assert(subQueryResults.empty() == true);
   	assert(context != 0);
   
   	const XPathExpression&	currentExpression = getExpression();
  @@ -1922,6 +1925,7 @@
   			int 					stepType,
   			MutableNodeRefList& 	subQueryResults) const
   {
  +	assert(subQueryResults.empty() == true);
   	assert(context != 0);
   
   	const XPathExpression&	currentExpression = getExpression();
  @@ -1971,6 +1975,7 @@
   			int 					stepType,
   			MutableNodeRefList& 	subQueryResults) const
   {
  +	assert(subQueryResults.empty() == true);
   	assert(context != 0);
   
   	context = DOMServices::getParentOfNode(*context);
  @@ -2023,6 +2028,7 @@
   			int 					stepType,
   			MutableNodeRefList& 	subQueryResults) const
   {
  +	assert(subQueryResults.empty() == true);
   	assert(context != 0);
   
   	const XPathExpression&	currentExpression = getExpression();
  @@ -2070,6 +2076,7 @@
   			int 					stepType,
   			MutableNodeRefList& 	subQueryResults) const
   {
  +	assert(subQueryResults.empty() == true);
   	assert(context != 0);
   
   	const XPathExpression&	currentExpression = getExpression();
  @@ -2131,6 +2138,7 @@
   			int 					stepType,
   			MutableNodeRefList& 	subQueryResults) const
   {
  +	assert(subQueryResults.empty() == true);
   	assert(context != 0);
   
   	XalanNode*	child = context->getFirstChild();
  @@ -2183,6 +2191,7 @@
   			int 					stepType,
   			MutableNodeRefList& 	subQueryResults) const
   {
  +	assert(subQueryResults.empty() == true);
   	assert(context != 0);
   
   	const XPathExpression&	currentExpression = getExpression();
  @@ -2258,6 +2267,7 @@
   			int 					stepType,
   			MutableNodeRefList& 	subQueryResults) const
   {
  +	assert(subQueryResults.empty() == true);
   	assert(context != 0);
   
   	const XPathExpression&	currentExpression = getExpression();
  @@ -2354,6 +2364,7 @@
   			int 					stepType,
   			MutableNodeRefList& 	subQueryResults) const
   {
  +	assert(subQueryResults.empty() == true);
   	assert(context != 0);
   
   	const XPathExpression&	currentExpression = getExpression();
  @@ -2452,6 +2463,7 @@
   			int 					stepType,
   			MutableNodeRefList& 	subQueryResults) const
   {
  +	assert(subQueryResults.empty() == true);
   	assert(context != 0);
   
   	const XPathExpression&	currentExpression = getExpression();
  @@ -2575,6 +2587,7 @@
   			int 					stepType,
   			MutableNodeRefList& 	subQueryResults) const
   {
  +	assert(subQueryResults.empty() == true);
   	assert(context != 0);
   
   	const XPathExpression&	currentExpression = getExpression();
  @@ -2627,6 +2640,7 @@
   			int 					stepType,
   			MutableNodeRefList& 	subQueryResults) const
   {
  +	assert(subQueryResults.empty() == true);
   	assert(context != 0);
   
   	const XPathExpression&	currentExpression = getExpression();
  
  
  

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