summaryrefslogtreecommitdiff
path: root/unotools/source/ucbhelper/xtempfile.cxx
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2005-02-25 08:23:55 +0000
committerVladimir Glazounov <vg@openoffice.org>2005-02-25 08:23:55 +0000
commit4e1fb4895192fc4458d089b288dab0a68447c387 (patch)
tree585dca95fdbe987e1606c2ee8dba957a638667c9 /unotools/source/ucbhelper/xtempfile.cxx
parentb1a61cadbac815d1bee6a1c54d286ff823fb6167 (diff)
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
Diffstat (limited to 'unotools/source/ucbhelper/xtempfile.cxx')
-rw-r--r--unotools/source/ucbhelper/xtempfile.cxx15
1 files changed, 2 insertions, 13 deletions
diff --git a/unotools/source/ucbhelper/xtempfile.cxx b/unotools/source/ucbhelper/xtempfile.cxx
index f28d475eca02..bb0845aa863b 100644
--- a/unotools/source/ucbhelper/xtempfile.cxx
+++ b/unotools/source/ucbhelper/xtempfile.cxx
@@ -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 );