INTEGRATION: CWS mav16 (1.7.92); FILE MERGED

2005/02/11 15:09:20 mav 1.7.92.1: #i42264# do not use dead configuration entry
This commit is contained in:
Vladimir Glazounov 2005-02-25 08:23:55 +00:00
parent b1a61cadba
commit 4e1fb48951

View file

@ -2,9 +2,9 @@
*
* $RCSfile: xtempfile.cxx,v $
*
* $Revision: 1.7 $
* $Revision: 1.8 $
*
* last change: $Author: kz $ $Date: 2003-09-11 10:32:06 $
* last change: $Author: vg $ $Date: 2005-02-25 09:23:55 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@ -125,17 +125,6 @@ XTempFile::XTempFile ()
, mbInClosed( sal_False )
, mbOutClosed( sal_False )
{
if ( ! TempFile::GetTempNameBaseDirectory().Len())
{
OUString aUserPath, aTmp;
ConfigManager* pCfgMgr = ConfigManager::GetConfigManager();
Any aAny = pCfgMgr->GetDirectConfigProperty( ConfigManager::INSTALLPATH );
aAny >>= aUserPath;
aUserPath += OUString ( RTL_CONSTASCII_USTRINGPARAM (DESKTOP_TEMPNAMEBASE_DIR ) );
FileBase::getFileURLFromSystemPath( aUserPath, aTmp );
TempFile::SetTempNameBaseDirectory( aTmp );
}
mpTempFile = new TempFile;
mpTempFile->EnableKillingFile ( sal_True );
mpStream = mpTempFile->GetStream ( STREAM_STD_READWRITE );