summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorjp <jp@openoffice.org>2000-11-13 12:13:54 +0000
committerjp <jp@openoffice.org>2000-11-13 12:13:54 +0000
commitc3207b5384969e9d0cad50e86e90a42d83f44110 (patch)
tree3eb618308a2daf5edb1c1c9bc14a55b6fc2c5047 /sw
parent87e875784104860f475c0176f5d07eb1202950b7 (diff)
use new method GetStream from TempFile
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/bastyp/swcache.cxx16
1 files changed, 10 insertions, 6 deletions
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 <unotools/tempfile.hxx>
#endif
-#include "errhdl.hxx"
-#include "swcache.hxx"
+#ifndef _ERRHDL_HXX
+#include <errhdl.hxx>
+#endif
+#ifndef _SWCACHE_HXX
+#include <swcache.hxx>
+#endif
#ifndef PRODUCT
#include <stdlib.h> // 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() )