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/07/08 08:49:50 UTC

cvs commit: xml-xalan/c/src/PlatformSupport DOMStringHelper.hpp

dbertoni    01/07/07 23:49:50

  Modified:    c/src/PlatformSupport DOMStringHelper.hpp
  Log:
  A few minor changes...
  
  Revision  Changes    Path
  1.46      +2 -9      xml-xalan/c/src/PlatformSupport/DOMStringHelper.hpp
  
  Index: DOMStringHelper.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/PlatformSupport/DOMStringHelper.hpp,v
  retrieving revision 1.45
  retrieving revision 1.46
  diff -u -r1.45 -r1.46
  --- DOMStringHelper.hpp	2001/06/25 20:08:52	1.45
  +++ DOMStringHelper.hpp	2001/07/08 06:49:49	1.46
  @@ -352,7 +352,7 @@
   inline bool 
   isEmpty(const XalanDOMString&	str)
   {
  -	return length(str) == 0 ? true : false; 
  +	return str.empty(); 
   }
   
   
  @@ -430,14 +430,7 @@
   			const XalanDOMString&	theString,
   			XalanDOMChar			theChar)
   {
  -	if (theString.length() == 0)
  -	{
  -		return 0;
  -	}
  -	else
  -	{
  -		return indexOf(c_wstr(theString), theChar);
  -	}
  +	return length(theString) == 0 ? 0 : indexOf(c_wstr(theString), theChar);
   }
   
   
  
  
  

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