use more TempFileFastService in xmlsecurity
Change-Id: I905e1e126e96195212887feb190e87f7f4da5adf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141646 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
committed by
Noel Grandin
parent
a3c7d78f3d
commit
0df36d45b6
@@ -28,6 +28,7 @@
|
||||
#include "documentsignaturehelper.hxx"
|
||||
|
||||
#include <com/sun/star/xml/crypto/XSEInitializer.hpp>
|
||||
#include <unotools/tempfile.hxx>
|
||||
|
||||
namespace com::sun::star
|
||||
{
|
||||
@@ -67,7 +68,7 @@ private:
|
||||
css::uno::Sequence<css::uno::Sequence<css::beans::PropertyValue>> m_manifest;
|
||||
css::uno::Reference<css::io::XStream> mxSignatureStream;
|
||||
css::uno::Reference<css::frame::XModel> mxModel;
|
||||
css::uno::Reference<css::io::XStream> mxTempSignatureStream;
|
||||
rtl::Reference<utl::TempFileFastService> mxTempSignatureStream;
|
||||
/// Storage containing all OOXML signatures, unused for ODF.
|
||||
css::uno::Reference<css::embed::XStorage> mxTempSignatureStorage;
|
||||
css::uno::Reference<css::xml::crypto::XSEInitializer> mxSEInitializer;
|
||||
|
@@ -237,7 +237,7 @@ SignatureStreamHelper DocumentSignatureManager::ImplOpenSignatureStream(sal_Int3
|
||||
if (nStreamOpenMode & embed::ElementModes::TRUNCATE)
|
||||
{
|
||||
//We write always into a new temporary stream.
|
||||
mxTempSignatureStream.set(io::TempFile::create(mxContext), uno::UNO_QUERY_THROW);
|
||||
mxTempSignatureStream = new utl::TempFileFastService;
|
||||
if (aHelper.nStorageFormat != embed::StorageFormats::OFOPXML)
|
||||
aHelper.xSignatureStream = mxTempSignatureStream;
|
||||
else
|
||||
|
Reference in New Issue
Block a user