diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2017-01-19 09:28:01 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2017-01-19 10:02:48 +0000 |
commit | 716db7dd4a41235007ec0f8e1d3bdb44a83f0bd8 (patch) | |
tree | 1eee4a9787d6dfc6e19242fa7e61001bb9eec4ad /xmlsecurity | |
parent | 4e9cfc178c47893229f8030bfe73e2b7c5de92c3 (diff) |
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@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'xmlsecurity')
-rw-r--r-- | xmlsecurity/source/framework/encryptionengine.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xmlsecurity/source/framework/encryptionengine.cxx b/xmlsecurity/source/framework/encryptionengine.cxx index b6265f01c3a7..eb236e81be97 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 |