summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2021-02-23 09:47:58 +0100
committerMike Kaganski <mike.kaganski@collabora.com>2021-02-23 10:51:50 +0100
commitd042b39c2f30246b51cba65400552c25a6dd5105 (patch)
tree6733ddf2295bc9f2ec8aea751a8eb66dc8e861b4 /sfx2
parent7a8dc25defee31edbb75a2f8c35f92ee2d3f3a83 (diff)
No need to check if parent is empty: utl::TempFile does it itself
... down in ConstructTempDir_Impl Change-Id: I04f4cdb0bd77b1bf0f20a2c72b32a5343e9e7e72 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111324 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/doc/docfile.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx
index 567e4e678b2b..b1f96440fb8a 100644
--- a/sfx2/source/doc/docfile.cxx
+++ b/sfx2/source/doc/docfile.cxx
@@ -3667,7 +3667,7 @@ void SfxMedium::CreateTempFile( bool bReplace )
}
OUString aLogicBase = GetLogicBase(GetURLObject(), pImpl);
- pImpl->pTempFile.reset( new ::utl::TempFile(aLogicBase.isEmpty() ? nullptr : &aLogicBase) );
+ pImpl->pTempFile.reset(new ::utl::TempFile(&aLogicBase));
pImpl->pTempFile->EnableKillingFile();
pImpl->m_aName = pImpl->pTempFile->GetFileName();
OUString aTmpURL = pImpl->pTempFile->GetURL();
@@ -3763,7 +3763,7 @@ void SfxMedium::CreateTempFileNoCopy()
pImpl->pTempFile.reset();
OUString aLogicBase = GetLogicBase(GetURLObject(), pImpl);
- pImpl->pTempFile.reset( new ::utl::TempFile(aLogicBase.isEmpty() ? nullptr : &aLogicBase) );
+ pImpl->pTempFile.reset(new ::utl::TempFile(&aLogicBase));
pImpl->pTempFile->EnableKillingFile();
pImpl->m_aName = pImpl->pTempFile->GetFileName();
if ( pImpl->m_aName.isEmpty() )