summaryrefslogtreecommitdiff
path: root/xmlsecurity
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-06-05 11:56:40 +0200
committerNoel Grandin <noel@peralex.com>2013-06-05 14:48:20 +0200
commit6a12e13870f15df93d2627f1538f7c64ca46e9e5 (patch)
tree724896fa1467ec3b9b1a6244ca03d0c0957d6903 /xmlsecurity
parent73e686725e734c2bb576aefa2bb514d7b5f9a13c (diff)
fdo#46808, Convert XMLSignatureTemplate service to new style
Change-Id: I80530f84ad5a86eccc794f9ddd14f939d093a20d
Diffstat (limited to 'xmlsecurity')
-rw-r--r--xmlsecurity/source/framework/signatureengine.cxx9
1 files changed, 2 insertions, 7 deletions
diff --git a/xmlsecurity/source/framework/signatureengine.cxx b/xmlsecurity/source/framework/signatureengine.cxx
index e3b462879e9d..e289b24a44cc 100644
--- a/xmlsecurity/source/framework/signatureengine.cxx
+++ b/xmlsecurity/source/framework/signatureengine.cxx
@@ -19,7 +19,7 @@
#include "signatureengine.hxx"
-#include <com/sun/star/xml/crypto/XXMLSignatureTemplate.hpp>
+#include <com/sun/star/xml/crypto/XMLSignatureTemplate.hpp>
#include <com/sun/star/xml/wrapper/XXMLElementWrapper.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
@@ -29,8 +29,6 @@ namespace cssl = com::sun::star::lang;
namespace cssxc = com::sun::star::xml::crypto;
namespace cssxw = com::sun::star::xml::wrapper;
-#define SIGNATURE_TEMPLATE "com.sun.star.xml.crypto.XMLSignatureTemplate"
-
SignatureEngine::SignatureEngine( const Reference<XComponentContext> & xContext)
: m_xContext(xContext), m_nTotalReferenceNumber(-1)
{
@@ -114,11 +112,8 @@ void SignatureEngine::tryToPerform( )
{
if (checkReady())
{
- const OUString ouSignatureTemplate ( SIGNATURE_TEMPLATE );
cssu::Reference < cssxc::XXMLSignatureTemplate >
- xSignatureTemplate( m_xContext->getServiceManager()->createInstanceWithContext( ouSignatureTemplate, m_xContext ), cssu::UNO_QUERY );
-
- OSL_ASSERT( xSignatureTemplate.is() );
+ xSignatureTemplate = cssxc::XMLSignatureTemplate::create( m_xContext );
cssu::Reference< cssxw::XXMLElementWrapper >
xXMLElement = m_xSAXEventKeeper->getElement( m_nIdOfTemplateEC );