summaryrefslogtreecommitdiff
path: root/sw/source/core/doc/docglbl.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/doc/docglbl.cxx')
-rw-r--r--sw/source/core/doc/docglbl.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sw/source/core/doc/docglbl.cxx b/sw/source/core/doc/docglbl.cxx
index ea0fd1453aef..f5c716ff0301 100644
--- a/sw/source/core/doc/docglbl.cxx
+++ b/sw/source/core/doc/docglbl.cxx
@@ -240,7 +240,7 @@ bool SwDoc::SplitDoc( sal_uInt16 eDocType, const OUString& rPath, bool bOutline,
OUString sLeading(aEntry.GetBase());
aEntry.removeSegment();
OUString sPath = aEntry.GetMainURL( INetURLObject::DecodeMechanism::NONE );
- utl::TempFile aTemp(sLeading, true, sExt, &sPath);
+ utl::TempFileNamed aTemp(sLeading, true, sExt, &sPath);
aTemp.EnableKillingFile();
DateTime aTmplDate( DateTime::SYSTEM );
@@ -315,8 +315,7 @@ bool SwDoc::SplitDoc( sal_uInt16 eDocType, const OUString& rPath, bool bOutline,
pDoc->GetNodes().GetEndOfContent().GetIndex() )
pDoc->GetNodes().Delete( aIdx );
- utl::TempFile aTempFile2(sLeading, true, sExt, &sPath);
- sFileName = aTempFile2.GetURL();
+ sFileName = utl::CreateTempURL(sLeading, true, sExt, &sPath);
SfxMedium* pTmpMed = new SfxMedium( sFileName,
StreamMode::STD_READWRITE );
pTmpMed->SetFilter( pFilter );