diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2017-01-05 10:03:47 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2017-01-05 15:31:33 +0000 |
commit | 9739392cbd0e7497351b7002a235b26c21392b9f (patch) | |
tree | 872c2fe76d2606c8e0d9c35488450fba0787e994 /xmlsecurity/source/framework | |
parent | ff4bafa065dd36fe1cdedcc4d20971f3abbd17fb (diff) |
xmlsecurity: hold XMLSignatureTemplateImpl by rtl::Reference
Going via UNO for a class in the same directory is an overkill.
Change-Id: I3dd09a74b6113c472402632bd54bc5bcf32f69bf
Reviewed-on: https://gerrit.libreoffice.org/32748
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'xmlsecurity/source/framework')
-rw-r--r-- | xmlsecurity/source/framework/signatureengine.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xmlsecurity/source/framework/signatureengine.cxx b/xmlsecurity/source/framework/signatureengine.cxx index ee7bf4551168..27dd705c4ca1 100644 --- a/xmlsecurity/source/framework/signatureengine.cxx +++ b/xmlsecurity/source/framework/signatureengine.cxx @@ -19,9 +19,10 @@ #include "framework/signatureengine.hxx" -#include <com/sun/star/xml/crypto/XMLSignatureTemplate.hpp> +#include "xmlsignaturetemplateimpl.hxx" #include <com/sun/star/xml/wrapper/XXMLElementWrapper.hpp> #include <com/sun/star/lang/XMultiServiceFactory.hpp> +#include <rtl/ref.hxx> using namespace com::sun::star::uno; namespace cssu = com::sun::star::uno; @@ -91,8 +92,7 @@ void SignatureEngine::tryToPerform( ) { if (checkReady()) { - cssu::Reference < cssxc::XXMLSignatureTemplate > - xSignatureTemplate = cssxc::XMLSignatureTemplate::create( m_xContext ); + rtl::Reference<XMLSignatureTemplateImpl> xSignatureTemplate = new XMLSignatureTemplateImpl(); cssu::Reference< cssxw::XXMLElementWrapper > xXMLElement = m_xSAXEventKeeper->getElement( m_nIdOfTemplateEC ); @@ -112,7 +112,7 @@ void SignatureEngine::tryToPerform( ) */ xSignatureTemplate->setBinding( this ); - startEngine( xSignatureTemplate ); + startEngine(css::uno::Reference<css::xml::crypto::XXMLSignatureTemplate>(xSignatureTemplate.get())); /* * done |