From af91f9416d98ab31e1a89f7e54f1d2a2bdaa02e8 Mon Sep 17 00:00:00 2001 From: RĂ¼diger Timm Date: Mon, 17 Oct 2005 12:31:01 +0000 Subject: INTEGRATION: CWS jscpp1 (1.3.12); FILE MERGED 2005/08/10 07:39:41 jsc 1.3.12.1: #i41875# integrate patch, use osl::FileBase::createTempFile --- rdbmaker/source/codemaker/typemanager.cxx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'rdbmaker/source') diff --git a/rdbmaker/source/codemaker/typemanager.cxx b/rdbmaker/source/codemaker/typemanager.cxx index 5a7f1f378a6a..e4cb49ffa5e1 100644 --- a/rdbmaker/source/codemaker/typemanager.cxx +++ b/rdbmaker/source/codemaker/typemanager.cxx @@ -4,9 +4,9 @@ * * $RCSfile: typemanager.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: rt $ $Date: 2005-09-09 05:04:44 $ + * last change: $Author: rt $ $Date: 2005-10-17 13:31:01 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -36,6 +36,9 @@ #ifndef _RTL_ALLOC_H_ #include #endif +#ifndef _OSL_FILE_HXX_ +#include +#endif #ifndef _CODEMAKER_TYPEMANAGER_HXX_ #include @@ -134,9 +137,10 @@ sal_Bool RegistryTypeManager::init(sal_Bool bMerged, const StringVector& regFile if (m_pImpl->m_isMerged) { Registry *pTmpReg = new Registry(loader); - OString tmpName(makeTempName(NULL)); - if (!pTmpReg->create( convertToFileUrl(tmpName) ) ) + OUString tmpName; + osl::FileBase::createTempFile(0, 0, &tmpName); + if (!pTmpReg->create(tmpName)) { RegistryKey rootKey; RegError ret = REG_NO_ERROR; -- cgit