diff options
author | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2019-10-18 11:27:11 +0200 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2019-12-04 05:37:48 +0100 |
commit | bdcbc746051aa44c8a115402f349a3c50d937af9 (patch) | |
tree | 6a2cf2d66bcf439dcab33b3d0211af4bb97e26d2 /sfx2 | |
parent | de93628f42b21cfe1150705aa4d32abe0153017b (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.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/doc/objserv.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/doc/objcont.cxx b/sfx2/source/doc/objcont.cxx index bdd117bc73e3..7a2a511a696a 100644 --- a/sfx2/source/doc/objcont.cxx +++ b/sfx2/source/doc/objcont.cxx @@ -403,7 +403,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 8df1c3e0fecf..f78bec833f59 100644 --- a/sfx2/source/doc/objserv.cxx +++ b/sfx2/source/doc/objserv.cxx @@ -1590,7 +1590,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, |