xmlsecurity/source/framework/encryptionengine.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
New commits: commit 716db7dd4a41235007ec0f8e1d3bdb44a83f0bd8 Author: Miklos Vajna <[email protected]> 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 <[email protected]> Tested-by: Jenkins <[email protected]> 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 _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
