[Libreoffice-commits] core.git: xmlsecurity/source
Miklos Vajna
vmiklos at collabora.co.uk
Thu Jan 5 15:31:56 UTC 2017
xmlsecurity/source/framework/signatureengine.cxx | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit 9739392cbd0e7497351b7002a235b26c21392b9f
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date: Thu Jan 5 10:03:47 2017 +0100
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 at collabora.co.uk>
Tested-by: Jenkins <ci at libreoffice.org>
diff --git a/xmlsecurity/source/framework/signatureengine.cxx b/xmlsecurity/source/framework/signatureengine.cxx
index ee7bf45..27dd705 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
More information about the Libreoffice-commits
mailing list