diff options
author | Stephan Bergmann <sb@openoffice.org> | 2000-12-15 07:40:14 +0000 |
---|---|---|
committer | Stephan Bergmann <sb@openoffice.org> | 2000-12-15 07:40:14 +0000 |
commit | 00fbf48c93bf69f5fa6ebbd2cc3c9251fda20051 (patch) | |
tree | 3679c58ba1e62d082c6523fa1ef6d2171cff16fa /unotools/source/ucbhelper/tempfile.cxx | |
parent | f95c6c979d94b9742a7dbaacec346ecd0e8a87b2 (diff) |
#82037# Adapted to modified FileIdentifierConverter mechanism.
Diffstat (limited to 'unotools/source/ucbhelper/tempfile.cxx')
-rw-r--r-- | unotools/source/ucbhelper/tempfile.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/unotools/source/ucbhelper/tempfile.cxx b/unotools/source/ucbhelper/tempfile.cxx index 1b41c7c06b81..49f3c304e5f0 100644 --- a/unotools/source/ucbhelper/tempfile.cxx +++ b/unotools/source/ucbhelper/tempfile.cxx @@ -2,9 +2,9 @@ * * $RCSfile: tempfile.cxx,v $ * - * $Revision: 1.8 $ + * $Revision: 1.9 $ * - * last change: $Author: mba $ $Date: 2000-12-01 11:54:11 $ + * last change: $Author: sb $ $Date: 2000-12-15 08:40:14 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -66,7 +66,6 @@ #include <ucbhelper/contentbroker.hxx> #include <rtl/ustring.hxx> #include <osl/file.hxx> -#include <osl/socket.h> #include <tools/time.hxx> #include <tools/debug.hxx> #include <stdio.h> @@ -104,11 +103,12 @@ String ConstructTempDir_Impl( const String* pParent ) // if parent given try to use it rtl::OUString aTmp( *pParent ); - rtl::OUString aHost; - osl_getLocalHostname( &aHost.pData ); // test for valid filename - rtl::OUString aRet = ::ucb::getNormalizedPathFromFileURL( xManager, aHost, aTmp ); + rtl::OUString aRet; + ::osl::FileBase::normalizePath( + ::ucb::getSystemPathFromFileURL( xManager, aTmp ), + aRet ); if ( aRet.getLength() ) { ::osl::DirectoryItem aItem; |