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/04/06 09:53:33 UTC

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

dbertoni    02/04/05 23:53:33

  Modified:    c/src/XPath XPathEnvSupportDefault.cpp
  Log:
  Don't use MapValueDeleteFunctor on certain platforms.
  
  Revision  Changes    Path
  1.31      +11 -0     xml-xalan/c/src/XPath/XPathEnvSupportDefault.cpp
  
  Index: XPathEnvSupportDefault.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XPath/XPathEnvSupportDefault.cpp,v
  retrieving revision 1.30
  retrieving revision 1.31
  diff -u -r1.30 -r1.31
  --- XPathEnvSupportDefault.cpp	19 Oct 2001 18:37:47 -0000	1.30
  +++ XPathEnvSupportDefault.cpp	6 Apr 2002 07:53:33 -0000	1.31
  @@ -522,8 +522,19 @@
   void
   XPathEnvSupportDefault::NamespaceFunctionTableDeleteFunctor::operator()(const NamespaceFunctionTablesInnerType::value_type&	thePair) const
   {
  +#if defined(XALAN_CANNOT_DELETE_CONST)
  +	FunctionTableInnerType::const_iterator	i = thePair.second.begin();
  +
  +	while(i != thePair.second.end())
  +	{
  +		delete (Function*) (*i).second;
  +
  +		++i;
  +	}
  +#else
   	// Clean up the extension namespaces vector
   	for_each(thePair.second.begin(),
   			 thePair.second.end(),
   			 MapValueDeleteFunctor<FunctionTableInnerType>());
  +#endif
   }
  
  
  

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