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/08/22 22:20:18 UTC

cvs commit: xml-xalan/c/src/XercesPlatformSupport TextFileOutputStream.cpp XercesTextOutputStream.cpp

dbertoni    00/08/22 13:20:17

  Modified:    c/src/XercesPlatformSupport TextFileOutputStream.cpp
                        XercesTextOutputStream.cpp
  Log:
  Changes for AIX port.
  
  Revision  Changes    Path
  1.12      +3 -5      xml-xalan/c/src/XercesPlatformSupport/TextFileOutputStream.cpp
  
  Index: TextFileOutputStream.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XercesPlatformSupport/TextFileOutputStream.cpp,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- TextFileOutputStream.cpp	2000/04/20 16:43:50	1.11
  +++ TextFileOutputStream.cpp	2000/08/22 20:20:15	1.12
  @@ -65,7 +65,7 @@
   
   
   #include <PlatformSupport/DOMStringHelper.hpp>
  -#include <PlatformSupport/STLHelper.hpp>
  +#include <PlatformSupport/XalanAutoPtr.hpp>
   
   
   
  @@ -75,11 +75,9 @@
   	m_fileName(theFileName),
   	m_handle(0)
   {
  -	char* const	tmpName = theFileName.transcode();
  +	const XalanArrayAutoPtr<char>	tmpName(theFileName.transcode());
   
  -	array_auto_ptr<char>	janTmp(tmpName);
  -
  -	m_handle = fopen(tmpName, "wt");
  +	m_handle = fopen(tmpName.get(), "wt");
   
       if (m_handle == 0)
   	{
  
  
  
  1.7       +2 -2      xml-xalan/c/src/XercesPlatformSupport/XercesTextOutputStream.cpp
  
  Index: XercesTextOutputStream.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XercesPlatformSupport/XercesTextOutputStream.cpp,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- XercesTextOutputStream.cpp	2000/07/05 22:17:07	1.6
  +++ XercesTextOutputStream.cpp	2000/08/22 20:20:15	1.7
  @@ -64,7 +64,7 @@
   
   
   #include <PlatformSupport/DOMStringHelper.hpp>
  -#include <PlatformSupport/STLHelper.hpp>
  +#include <PlatformSupport/XalanAutoPtr.hpp>
   
   
   
  @@ -194,7 +194,7 @@
   {
   	assert(theBuffer != 0);
   
  -    array_auto_ptr<char>	theTranscodedString(XMLString::transcode(theBuffer));
  +    const XalanArrayAutoPtr<char>	theTranscodedString(XMLString::transcode(theBuffer));
   
   	writeData(theTranscodedString.get(),
   			  strlen(theTranscodedString.get()));