sfx2/source/doc/objcont.cxx | 2 +- sfx2/source/doc/objserv.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
New commits: commit 9112c18524c9f5e67d6cbb282586a439e3020cdb Author: Samuel Mehrbrodt <samuel.mehrbr...@cib.de> AuthorDate: Fri Oct 18 11:27:11 2019 +0200 Commit: Samuel Mehrbrodt <samuel.mehrbr...@cib.de> CommitDate: Mon Oct 21 08:34:04 2019 +0200 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.mehrbr...@cib.de> 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, _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits