diff options
author | Marcos Paulo de Souza <marcos.souza.org@gmail.com> | 2013-10-26 13:11:42 -0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-10-30 18:17:11 +0100 |
commit | 2b01553fa5982ed50fd37f346a150d1aac8dcd6f (patch) | |
tree | 1daf00bf4b69950c5b75e98571d2b839d5b83327 /sot | |
parent | 9ab844c7fa907e2d1119a316c695198ef888a059 (diff) |
fdo#54938: Convert svx to use cppu::supportsService
Change-Id: I3ab178924cb1c4240511f08625f244dac54e3913
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sot')
-rw-r--r-- | sot/source/unoolestorage/xolesimplestorage.cxx | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/sot/source/unoolestorage/xolesimplestorage.cxx b/sot/source/unoolestorage/xolesimplestorage.cxx index d2fbf3296e62..712f3518b7b2 100644 --- a/sot/source/unoolestorage/xolesimplestorage.cxx +++ b/sot/source/unoolestorage/xolesimplestorage.cxx @@ -30,6 +30,7 @@ #include <unotools/ucbstreamhelper.hxx> #include <cppuhelper/exc_hlp.hxx> +#include <cppuhelper/supportsservice.hxx> #include <sot/storinfo.hxx> @@ -769,31 +770,19 @@ void SAL_CALL OLESimpleStorage::setClassInfo( const uno::Sequence< sal_Int8 >& / throw lang::NoSupportException(); } -//____________________________________________________________________________________________________ // XServiceInfo -//____________________________________________________________________________________________________ - -// -------------------------------------------------------------------------------- OUString SAL_CALL OLESimpleStorage::getImplementationName() throw ( uno::RuntimeException ) { return impl_staticGetImplementationName(); } -// -------------------------------------------------------------------------------- sal_Bool SAL_CALL OLESimpleStorage::supportsService( const OUString& ServiceName ) throw ( uno::RuntimeException ) { - uno::Sequence< OUString > aSeq = impl_staticGetSupportedServiceNames(); - - for ( sal_Int32 nInd = 0; nInd < aSeq.getLength(); nInd++ ) - if ( ServiceName == aSeq[nInd] ) - return sal_True; - - return sal_False; + return cppu::supportsService(this, ServiceName); } -// -------------------------------------------------------------------------------- uno::Sequence< OUString > SAL_CALL OLESimpleStorage::getSupportedServiceNames() throw ( uno::RuntimeException ) { |