diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-05-14 13:38:23 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-05-14 13:38:23 +0200 |
commit | c8695c6cce4aaa07ab2d615783d74037abb241b5 (patch) | |
tree | a611b43279dd7b70815becec34edd9c70fb2692f /sfx2 | |
parent | 8db493240a2caced1ab72a9e0fc87d39a6d3f12d (diff) |
Unify utl::TempFile ctors
Change-Id: I0a781a86804808cebf7756506d9299971c13e2ff
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/doc/docfile.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx index 1f525660f864..517da1933746 100644 --- a/sfx2/source/doc/docfile.cxx +++ b/sfx2/source/doc/docfile.cxx @@ -2037,7 +2037,7 @@ void SfxMedium::DoInternalBackup_Impl( const ::ucbhelper::Content& aOriginalCont if ( !pImp->m_aBackupURL.isEmpty() ) return; // the backup was done already - ::utl::TempFile aTransactTemp( aPrefix, &aExtension, &aDestDir ); + ::utl::TempFile aTransactTemp( aPrefix, true, &aExtension, &aDestDir ); aTransactTemp.EnableKillingFile( false ); INetURLObject aBackObj( aTransactTemp.GetURL() ); @@ -3504,7 +3504,7 @@ OUString SfxMedium::CreateTempCopyWithExt( const OUString& aURL ) sal_Int32 nPrefixLen = aURL.lastIndexOf( '.' ); OUString aExt = ( nPrefixLen == -1 ) ? OUString() : aURL.copy( nPrefixLen ); - OUString aNewTempFileURL = ::utl::TempFile( OUString(), &aExt ).GetURL(); + OUString aNewTempFileURL = ::utl::TempFile( OUString(), true, &aExt ).GetURL(); if ( !aNewTempFileURL.isEmpty() ) { INetURLObject aSource( aURL ); @@ -3579,7 +3579,7 @@ OUString SfxMedium::SwitchDocumentToTempFile() OUString const aExt = (nPrefixLen == -1) ? OUString() : aOrigURL.copy(nPrefixLen); - OUString aNewURL = ::utl::TempFile( OUString(), &aExt ).GetURL(); + OUString aNewURL = ::utl::TempFile( OUString(), true, &aExt ).GetURL(); // TODO/LATER: In future the aLogicName should be set to shared folder URL // and a temporary file should be created. Transport_Impl should be impossible then. |