diff options
author | Noel Grandin <noel@peralex.com> | 2013-06-05 11:32:31 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-06-05 14:48:19 +0200 |
commit | a4196fc3cf1e20e32cda9477a33ff56515f0c24e (patch) | |
tree | 176cadd0e15d1ef0d520fc936454da7d2dc89e01 /xmlsecurity/source/framework/decryptorimpl.cxx | |
parent | 27c6434fccfec5fb4184c1efa2057595c8716fad (diff) |
fdo#46808, Convert XMultiServiceFactory in xmlsecurity module
Change-Id: Ia134170d07f33c2649b2a2620f40bc7b45ec7e16
Diffstat (limited to 'xmlsecurity/source/framework/decryptorimpl.cxx')
-rw-r--r-- | xmlsecurity/source/framework/decryptorimpl.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/xmlsecurity/source/framework/decryptorimpl.cxx b/xmlsecurity/source/framework/decryptorimpl.cxx index ec35abeec0a2..7bc6bb6cdb3c 100644 --- a/xmlsecurity/source/framework/decryptorimpl.cxx +++ b/xmlsecurity/source/framework/decryptorimpl.cxx @@ -22,7 +22,9 @@ #include <com/sun/star/xml/crypto/XXMLEncryptionTemplate.hpp> #include <com/sun/star/xml/wrapper/XXMLElementWrapper.hpp> #include <com/sun/star/lang/XMultiServiceFactory.hpp> +#include <comphelper/processfactory.hxx> +using namespace com::sun::star::uno; namespace cssu = com::sun::star::uno; namespace cssl = com::sun::star::lang; namespace cssxc = com::sun::star::xml::crypto; @@ -31,9 +33,8 @@ namespace cssxw = com::sun::star::xml::wrapper; #define SERVICE_NAME "com.sun.star.xml.crypto.sax.Decryptor" #define IMPLEMENTATION_NAME "com.sun.star.xml.security.framework.DecryptorImpl" -DecryptorImpl::DecryptorImpl( const cssu::Reference< cssl::XMultiServiceFactory >& rxMSF) +DecryptorImpl::DecryptorImpl(const Reference< XComponentContext > & xContext) : DecryptorImpl_Base(xContext) { - mxMSF = rxMSF; } DecryptorImpl::~DecryptorImpl() @@ -198,10 +199,10 @@ cssu::Sequence< OUString > SAL_CALL DecryptorImpl_getSupportedServiceNames( ) } #undef SERVICE_NAME -cssu::Reference< cssu::XInterface > SAL_CALL DecryptorImpl_createInstance( const cssu::Reference< cssl::XMultiServiceFactory >& rSMgr) +cssu::Reference< cssu::XInterface > SAL_CALL DecryptorImpl_createInstance( const cssu::Reference< cssl::XMultiServiceFactory >& xMSF) throw( cssu::Exception ) { - return (cppu::OWeakObject*) new DecryptorImpl(rSMgr); + return (cppu::OWeakObject*) new DecryptorImpl( comphelper::getComponentContext( xMSF ) ); } /* XServiceInfo */ |