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...@locus.apache.org on 2000/10/02 22:51:22 UTC

cvs commit: xml-xalan/c/src/PlatformSupport XalanOutputStreamPrintWriter.cpp

dbertoni    00/10/02 13:51:21

  Modified:    c/src/PlatformSupport XalanOutputStreamPrintWriter.cpp
  Log:
  Write strings more efficiently.
  
  Revision  Changes    Path
  1.2       +2 -12     xml-xalan/c/src/PlatformSupport/XalanOutputStreamPrintWriter.cpp
  
  Index: XalanOutputStreamPrintWriter.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/PlatformSupport/XalanOutputStreamPrintWriter.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- XalanOutputStreamPrintWriter.cpp	2000/09/27 16:24:12	1.1
  +++ XalanOutputStreamPrintWriter.cpp	2000/10/02 20:51:19	1.2
  @@ -149,12 +149,7 @@
   	}
   	else
   	{
  -		const long	theStopIndex = theOffset + theLength;
  -
  -		for (long i = theOffset; i < theStopIndex; i++)
  -		{
  -			m_OutputStream.write(s[i]);
  -		}
  +		m_OutputStream.write(s + theOffset, theLength);
   	}
   }
   
  @@ -181,12 +176,7 @@
   	}
   	else
   	{
  -		const long	theStopIndex = theOffset + theLength;
  -
  -		for (long i = theOffset; i < theStopIndex; i++)
  -		{
  -			m_OutputStream.write(s[i]);
  -		}
  +		m_OutputStream.write(s + theOffset, theLength);
   	}
   }