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/07/23 02:28:15 UTC

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

dbertoni    2002/07/22 17:28:15

  Modified:    c/src/XPath XObjectFactoryDefault.cpp
  Log:
  Use empty() instead of size() != 0.
  
  Revision  Changes    Path
  1.26      +2 -2      xml-xalan/c/src/XPath/XObjectFactoryDefault.cpp
  
  Index: XObjectFactoryDefault.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XPath/XObjectFactoryDefault.cpp,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- XObjectFactoryDefault.cpp	1 Nov 2001 15:57:13 -0000	1.25
  +++ XObjectFactoryDefault.cpp	23 Jul 2002 00:28:15 -0000	1.26
  @@ -320,7 +320,7 @@
   const XObjectPtr
   XObjectFactoryDefault::createNumber(double	theValue)
   {
  -	if (m_xnumberCache.size() > 0)
  +	if (m_xnumberCache.empty() == false)
   	{
   		XNumber* const	theXNumber = m_xnumberCache.back();
   
  @@ -359,7 +359,7 @@
   const XObjectPtr
   XObjectFactoryDefault::createNodeSet(BorrowReturnMutableNodeRefList&	theValue)
   {
  -	if (m_xnodesetCache.size() > 0)
  +	if (m_xnodesetCache.empty() == false)
   	{
   		XNodeSet* const		theXObject = m_xnodesetCache.back();
   
  
  
  

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