From 92f162eb0b08c37b937fe1bf760ceac3d23b9ec2 Mon Sep 17 00:00:00 2001 From: Alexandre Vicenzi Date: Tue, 14 Jan 2014 23:28:07 -0200 Subject: Convert xmlsecurity to cppu::supportsService Change-Id: Ifcec9e067e54cc8a3d1254d41d09ea251820849d --- xmlsecurity/source/framework/decryptorimpl.cxx | 11 ++++------- xmlsecurity/source/framework/encryptorimpl.cxx | 11 ++++------- xmlsecurity/source/framework/saxeventkeeperimpl.cxx | 11 ++++------- xmlsecurity/source/framework/signaturecreatorimpl.cxx | 11 ++++------- xmlsecurity/source/framework/signatureverifierimpl.cxx | 11 ++++------- xmlsecurity/source/xmlsec/nss/nssinitializer.cxx | 11 ++++------- 6 files changed, 24 insertions(+), 42 deletions(-) (limited to 'xmlsecurity') diff --git a/xmlsecurity/source/framework/decryptorimpl.cxx b/xmlsecurity/source/framework/decryptorimpl.cxx index 7bc6bb6cdb3c..6a482681bc7f 100644 --- a/xmlsecurity/source/framework/decryptorimpl.cxx +++ b/xmlsecurity/source/framework/decryptorimpl.cxx @@ -23,6 +23,7 @@ #include #include #include +#include using namespace com::sun::star::uno; namespace cssu = com::sun::star::uno; @@ -183,12 +184,6 @@ OUString DecryptorImpl_getImplementationName () return OUString ( IMPLEMENTATION_NAME ); } -sal_Bool SAL_CALL DecryptorImpl_supportsService( const OUString& ServiceName ) - throw (cssu::RuntimeException) -{ - return ServiceName == SERVICE_NAME; -} - cssu::Sequence< OUString > SAL_CALL DecryptorImpl_getSupportedServiceNames( ) throw (cssu::RuntimeException) { @@ -211,11 +206,13 @@ OUString SAL_CALL DecryptorImpl::getImplementationName( ) { return DecryptorImpl_getImplementationName(); } + sal_Bool SAL_CALL DecryptorImpl::supportsService( const OUString& rServiceName ) throw (cssu::RuntimeException) { - return DecryptorImpl_supportsService( rServiceName ); + return cppu::supportsService(this, rServiceName); } + cssu::Sequence< OUString > SAL_CALL DecryptorImpl::getSupportedServiceNames( ) throw (cssu::RuntimeException) { diff --git a/xmlsecurity/source/framework/encryptorimpl.cxx b/xmlsecurity/source/framework/encryptorimpl.cxx index 9fb3df75ceee..263577a247d0 100644 --- a/xmlsecurity/source/framework/encryptorimpl.cxx +++ b/xmlsecurity/source/framework/encryptorimpl.cxx @@ -23,6 +23,7 @@ #include #include #include + #include using namespace com::sun::star::uno; namespace cssl = com::sun::star::lang; @@ -217,12 +218,6 @@ OUString EncryptorImpl_getImplementationName () return OUString ( IMPLEMENTATION_NAME ); } -sal_Bool SAL_CALL EncryptorImpl_supportsService( const OUString& ServiceName ) - throw (RuntimeException) -{ - return ServiceName == SERVICE_NAME; -} - Sequence< OUString > SAL_CALL EncryptorImpl_getSupportedServiceNames( ) throw (RuntimeException) { @@ -246,11 +241,13 @@ OUString SAL_CALL EncryptorImpl::getImplementationName( ) { return EncryptorImpl_getImplementationName(); } + sal_Bool SAL_CALL EncryptorImpl::supportsService( const OUString& rServiceName ) throw (RuntimeException) { - return EncryptorImpl_supportsService( rServiceName ); + return cppu::supportsService(this, rServiceName); } + Sequence< OUString > SAL_CALL EncryptorImpl::getSupportedServiceNames( ) throw (RuntimeException) { diff --git a/xmlsecurity/source/framework/saxeventkeeperimpl.cxx b/xmlsecurity/source/framework/saxeventkeeperimpl.cxx index c79ee65af7b3..4eefb9b044c7 100644 --- a/xmlsecurity/source/framework/saxeventkeeperimpl.cxx +++ b/xmlsecurity/source/framework/saxeventkeeperimpl.cxx @@ -22,6 +22,7 @@ #include #include #include +#include namespace cssu = com::sun::star::uno; namespace cssl = com::sun::star::lang; @@ -1364,12 +1365,6 @@ OUString SAXEventKeeperImpl_getImplementationName () return OUString ( IMPLEMENTATION_NAME ); } -sal_Bool SAL_CALL SAXEventKeeperImpl_supportsService( const OUString& ServiceName ) - throw (cssu::RuntimeException) -{ - return ServiceName == SERVICE_NAME; -} - cssu::Sequence< OUString > SAL_CALL SAXEventKeeperImpl_getSupportedServiceNames( ) throw (cssu::RuntimeException) { @@ -1393,11 +1388,13 @@ OUString SAL_CALL SAXEventKeeperImpl::getImplementationName( ) { return SAXEventKeeperImpl_getImplementationName(); } + sal_Bool SAL_CALL SAXEventKeeperImpl::supportsService( const OUString& rServiceName ) throw (cssu::RuntimeException) { - return SAXEventKeeperImpl_supportsService( rServiceName ); + return cppu::supportsService(this, rServiceName); } + cssu::Sequence< OUString > SAL_CALL SAXEventKeeperImpl::getSupportedServiceNames( ) throw (cssu::RuntimeException) { diff --git a/xmlsecurity/source/framework/signaturecreatorimpl.cxx b/xmlsecurity/source/framework/signaturecreatorimpl.cxx index d8f71bf99110..7c5519020d0f 100644 --- a/xmlsecurity/source/framework/signaturecreatorimpl.cxx +++ b/xmlsecurity/source/framework/signaturecreatorimpl.cxx @@ -23,6 +23,7 @@ #include #include #include + #include using namespace com::sun::star::uno; namespace cssu = com::sun::star::uno; @@ -231,12 +232,6 @@ OUString SignatureCreatorImpl_getImplementationName () return OUString ( IMPLEMENTATION_NAME ); } -sal_Bool SAL_CALL SignatureCreatorImpl_supportsService( const OUString& ServiceName ) - throw (cssu::RuntimeException) -{ - return ServiceName == SERVICE_NAME; -} - cssu::Sequence< OUString > SAL_CALL SignatureCreatorImpl_getSupportedServiceNames( ) throw (cssu::RuntimeException) { @@ -260,11 +255,13 @@ OUString SAL_CALL SignatureCreatorImpl::getImplementationName( ) { return SignatureCreatorImpl_getImplementationName(); } + sal_Bool SAL_CALL SignatureCreatorImpl::supportsService( const OUString& rServiceName ) throw (cssu::RuntimeException) { - return SignatureCreatorImpl_supportsService( rServiceName ); + return cppu::supportsService(this, rServiceName); } + cssu::Sequence< OUString > SAL_CALL SignatureCreatorImpl::getSupportedServiceNames( ) throw (cssu::RuntimeException) { diff --git a/xmlsecurity/source/framework/signatureverifierimpl.cxx b/xmlsecurity/source/framework/signatureverifierimpl.cxx index 43a0a739a24f..c3f26db74c72 100644 --- a/xmlsecurity/source/framework/signatureverifierimpl.cxx +++ b/xmlsecurity/source/framework/signatureverifierimpl.cxx @@ -23,6 +23,7 @@ #include #include #include +#include namespace cssu = com::sun::star::uno; namespace cssl = com::sun::star::lang; @@ -177,12 +178,6 @@ OUString SignatureVerifierImpl_getImplementationName () return OUString( IMPLEMENTATION_NAME ); } -sal_Bool SAL_CALL SignatureVerifierImpl_supportsService( const OUString& ServiceName ) - throw (cssu::RuntimeException) -{ - return ServiceName == SERVICE_NAME; -} - cssu::Sequence< OUString > SAL_CALL SignatureVerifierImpl_getSupportedServiceNames( ) throw (cssu::RuntimeException) { @@ -206,11 +201,13 @@ OUString SAL_CALL SignatureVerifierImpl::getImplementationName( ) { return SignatureVerifierImpl_getImplementationName(); } + sal_Bool SAL_CALL SignatureVerifierImpl::supportsService( const OUString& rServiceName ) throw (cssu::RuntimeException) { - return SignatureVerifierImpl_supportsService( rServiceName ); + return cppu::supportsService(this, rServiceName); } + cssu::Sequence< OUString > SAL_CALL SignatureVerifierImpl::getSupportedServiceNames( ) throw (cssu::RuntimeException) { diff --git a/xmlsecurity/source/xmlsec/nss/nssinitializer.cxx b/xmlsecurity/source/xmlsec/nss/nssinitializer.cxx index 0799c23eca6e..5423d2edd48a 100644 --- a/xmlsecurity/source/xmlsec/nss/nssinitializer.cxx +++ b/xmlsecurity/source/xmlsec/nss/nssinitializer.cxx @@ -30,6 +30,7 @@ #include #include #include +#include #include @@ -477,12 +478,6 @@ OUString ONSSInitializer_getImplementationName () return OUString ( IMPLEMENTATION_NAME ); } -sal_Bool SAL_CALL ONSSInitializer_supportsService( const OUString& ServiceName ) - throw (cssu::RuntimeException) -{ - return ServiceName == NSS_SERVICE_NAME; -} - cssu::Sequence< OUString > SAL_CALL ONSSInitializer_getSupportedServiceNames( ) throw (cssu::RuntimeException) { @@ -504,11 +499,13 @@ OUString SAL_CALL ONSSInitializer::getImplementationName() { return ONSSInitializer_getImplementationName(); } + sal_Bool SAL_CALL ONSSInitializer::supportsService( const OUString& rServiceName ) throw (cssu::RuntimeException) { - return ONSSInitializer_supportsService( rServiceName ); + return cppu::supportsService(this, rServiceName); } + cssu::Sequence< OUString > SAL_CALL ONSSInitializer::getSupportedServiceNames( ) throw (cssu::RuntimeException) { -- cgit