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 2004/02/06 02:46:15 UTC

cvs commit: xml-xalan/c/src/xalanc/XSLT StylesheetHandler.cpp

dbertoni    2004/02/05 17:46:15

  Modified:    c/src/xalanc/XSLT StylesheetHandler.cpp
  Log:
  Removed use of reverse iterators that was not necessary.  Changed find() call to count().
  
  Revision  Changes    Path
  1.11      +6 -6      xml-xalan/c/src/xalanc/XSLT/StylesheetHandler.cpp
  
  Index: StylesheetHandler.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/xalanc/XSLT/StylesheetHandler.cpp,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- StylesheetHandler.cpp	22 Jan 2004 19:47:20 -0000	1.10
  +++ StylesheetHandler.cpp	6 Feb 2004 01:46:14 -0000	1.11
  @@ -972,7 +972,7 @@
   	{
   		assert(m_inScopeVariableNamesStack.empty() == true);
   
  -		if (m_globalVariableNames.find(theVariableName) != m_globalVariableNames.end())
  +		if (m_globalVariableNames.count(theVariableName) != 0)
   		{
   			error(XalanMessageLoader::getMessage(XalanMessages::VariableHasBeenDeclared), theLocator);
   		}
  @@ -992,7 +992,7 @@
   		{
   			QNameSetVectorType::value_type	theLocalScope = *theCurrent;
   
  -			if (theLocalScope.find(theVariableName) != theLocalScope.end())
  +			if (theLocalScope.count(theVariableName) != 0)
   			{
   				error(XalanMessageLoader::getMessage(XalanMessages::VariableHasBeenDeclaredInThisTemplate), theLocator);
   			}
  @@ -1603,10 +1603,10 @@
   {
   	XALAN_USING_STD(find)
   
  -	if (find(
  -			m_inExtensionElementStack.rbegin(),
  -			m_inExtensionElementStack.rend(),
  -			true) != m_inExtensionElementStack.rend())
  +	if (!(find(
  +			m_inExtensionElementStack.begin(),
  +			m_inExtensionElementStack.end(),
  +			true) == m_inExtensionElementStack.end()))
   	{
   		return true;
   	}
  
  
  

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