summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2019-10-18 11:27:11 +0200
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2019-10-21 08:34:04 +0200
commit9112c18524c9f5e67d6cbb282586a439e3020cdb (patch)
tree5388e00737f2e94505af8cdbc342b1007b294e58 /sfx2
parent4a20922e0eebe9c7a9fe59b3aac8a8d996bee0e7 (diff)
Don't create unnecessary tempfiles for opened doc
A copy of the doc was created for each opened file as a temp file. Try to avoid that. Change-Id: I11db2a9c8d77b954de56a6e977b1555c8f876416 Reviewed-on: https://gerrit.libreoffice.org/81031 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/doc/objcont.cxx2
-rw-r--r--sfx2/source/doc/objserv.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/doc/objcont.cxx b/sfx2/source/doc/objcont.cxx
index ecc131177fb9..8837e9fb82a7 100644
--- a/sfx2/source/doc/objcont.cxx
+++ b/sfx2/source/doc/objcont.cxx
@@ -404,7 +404,7 @@ void SfxObjectShell::UpdateFromTemplate_Impl( )
// tdf#113935 - do not remove this line - somehow, it makes the process
// of switching from viewing a read-only document to opening it in writable
// mode much faster.
- uno::Reference< embed::XStorage > xDocStor = pFile->GetStorage();
+ uno::Reference< embed::XStorage > xDocStor = pFile->GetStorage(false);
// only for own storage formats
if ( !pFile->GetFilter() || !pFile->GetFilter()->IsOwnFormat() )
diff --git a/sfx2/source/doc/objserv.cxx b/sfx2/source/doc/objserv.cxx
index 5e04a0c09c34..afcbfe14e14a 100644
--- a/sfx2/source/doc/objserv.cxx
+++ b/sfx2/source/doc/objserv.cxx
@@ -1608,7 +1608,7 @@ uno::Sequence< security::DocumentSignatureInformation > SfxObjectShell::GetDocum
uno::Reference< io::XInputStream >() );
else
{
- if (GetMedium()->GetStorage().is())
+ if (GetMedium()->GetStorage(false).is())
{
// Something ZIP-based.
// Only call into xmlsecurity if we see a signature stream,