From c3207b5384969e9d0cad50e86e90a42d83f44110 Mon Sep 17 00:00:00 2001 From: jp Date: Mon, 13 Nov 2000 12:13:54 +0000 Subject: use new method GetStream from TempFile --- sw/source/core/bastyp/swcache.cxx | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'sw') diff --git a/sw/source/core/bastyp/swcache.cxx b/sw/source/core/bastyp/swcache.cxx index bfa3069188fa..5c28e20aaaac 100644 --- a/sw/source/core/bastyp/swcache.cxx +++ b/sw/source/core/bastyp/swcache.cxx @@ -2,9 +2,9 @@ * * $RCSfile: swcache.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: jp $ $Date: 2000-11-06 09:44:32 $ + * last change: $Author: jp $ $Date: 2000-11-13 13:13:54 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -74,8 +74,12 @@ #ifndef _UNOTOOLS_TEMPFILE_HXX #include #endif -#include "errhdl.hxx" -#include "swcache.hxx" +#ifndef _ERRHDL_HXX +#include +#endif +#ifndef _SWCACHE_HXX +#include +#endif #ifndef PRODUCT #include // getenv() @@ -193,8 +197,8 @@ SwCache::~SwCache() #ifndef MAC static USHORT nOpenMode = STREAM_WRITE | STREAM_TRUNC; String sExt(String::CreateFromAscii(".log")); - utl::TempFile aTempFile(String::CreateFromAscii("swcache"), &sExt); - SvFileStream aStream( aTempFile.GetFileName(), nOpenMode ); + utl::TempFile aTempFile( String::CreateFromAscii("swcache"), &sExt ); + SvFileStream* pStream = aTempFile.GetStream( nOpenMode ); nOpenMode = STREAM_WRITE; if( !aStream.GetError() ) -- cgit v1.2.3