[Libreoffice-commits] core.git: xmlsecurity/source
Miklos Vajna
vmiklos at collabora.co.uk
Thu Jan 19 10:03:16 UTC 2017
xmlsecurity/source/framework/encryptionengine.cxx | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit 716db7dd4a41235007ec0f8e1d3bdb44a83f0bd8
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date: Thu Jan 19 09:28:01 2017 +0100
xmlsecurity: hold XMLEncryptionTemplateImpl by rtl::Reference
Going via UNO for a class in the same directory is an overkill.
Change-Id: Ia06561a95cd10a7aa52a1b84598f88c43e57e7a1
Reviewed-on: https://gerrit.libreoffice.org/33300
Reviewed-by: Miklos Vajna <vmiklos at collabora.co.uk>
Tested-by: Jenkins <ci at libreoffice.org>
diff --git a/xmlsecurity/source/framework/encryptionengine.cxx b/xmlsecurity/source/framework/encryptionengine.cxx
index b6265f0..eb236e8 100644
--- a/xmlsecurity/source/framework/encryptionengine.cxx
+++ b/xmlsecurity/source/framework/encryptionengine.cxx
@@ -19,9 +19,10 @@
#include "encryptionengine.hxx"
-#include <com/sun/star/xml/crypto/XMLEncryptionTemplate.hpp>
#include <com/sun/star/xml/wrapper/XXMLElementWrapper.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
+#include <rtl/ref.hxx>
+#include <xmlencryptiontemplateimpl.hxx>
using namespace com::sun::star::uno;
namespace cssxc = com::sun::star::xml::crypto;
@@ -93,15 +94,14 @@ void EncryptionEngine::tryToPerform( )
{
if (checkReady())
{
- Reference < cssxc::XXMLEncryptionTemplate > xEncryptionTemplate =
- cssxc::XMLEncryptionTemplate::create( m_xContext );
+ rtl::Reference<XMLEncryptionTemplateImpl> xEncryptionTemplate = new XMLEncryptionTemplateImpl();
Reference< cssxw::XXMLElementWrapper > xXMLElement
= m_xSAXEventKeeper->getElement( m_nIdOfTemplateEC );
xEncryptionTemplate->setTemplate(xXMLElement);
- startEngine( xEncryptionTemplate );
+ startEngine(Reference<cssxc::XXMLEncryptionTemplate>(xEncryptionTemplate.get()));
/*
* done
More information about the Libreoffice-commits
mailing list