summaryrefslogtreecommitdiff
path: root/xmlsecurity/source/framework/decryptorimpl.cxx
diff options
context:
space:
mode:
authorAlexandre Vicenzi <vicenzi.alexandre@gmail.com>2014-01-14 23:28:07 -0200
committerMatúš Kukan <matus.kukan@collabora.com>2014-01-17 12:24:57 +0100
commit92f162eb0b08c37b937fe1bf760ceac3d23b9ec2 (patch)
tree580e3fc586d8b26998aa77c4a2d91bd614d5db41 /xmlsecurity/source/framework/decryptorimpl.cxx
parentf907f21e7db4fadf488a6bad64ebbdfb21ec4e84 (diff)
Convert xmlsecurity to cppu::supportsService
Change-Id: Ifcec9e067e54cc8a3d1254d41d09ea251820849d
Diffstat (limited to 'xmlsecurity/source/framework/decryptorimpl.cxx')
-rw-r--r--xmlsecurity/source/framework/decryptorimpl.cxx11
1 files changed, 4 insertions, 7 deletions
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 <com/sun/star/xml/wrapper/XXMLElementWrapper.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <comphelper/processfactory.hxx>
+#include <cppuhelper/supportsservice.hxx>
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)
{