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 2001/09/18 20:29:09 UTC

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

dbertoni    01/09/18 11:29:09

  Modified:    c/src/XPath XPathFunctionTable.cpp
  Log:
  Added new #ifdef for XALAN_CANNOT_DELETE_CONST.
  
  Revision  Changes    Path
  1.14      +8 -0      xml-xalan/c/src/XPath/XPathFunctionTable.cpp
  
  Index: XPathFunctionTable.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XPath/XPathFunctionTable.cpp,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- XPathFunctionTable.cpp	2001/01/25 17:14:20	1.13
  +++ XPathFunctionTable.cpp	2001/09/18 18:29:09	1.14
  @@ -127,7 +127,11 @@
   		assert(CollectionType::size_type((*i).second) < m_FunctionCollection.size());
   
   		// It is, so delete the old one, and add the new one...
  +#if defined(XALAN_CANNOT_DELETE_CONST)
  +		delete (Function*)m_FunctionCollection[(*i).second];
  +#else
   		delete m_FunctionCollection[(*i).second];
  +#endif
   
   		m_FunctionCollection[(*i).second] = theFunction.clone();
   	}
  @@ -165,7 +169,11 @@
   #endif
   
   		// Delete the function...
  +#if defined(XALAN_CANNOT_DELETE_CONST)
  +		delete (Function*)m_FunctionCollection[(*i).second];
  +#else
   		delete m_FunctionCollection[(*i).second];
  +#endif
   
   		// Set the entry in the table to 0...
   		m_FunctionCollection[(*i).second] = 0;
  
  
  

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