diff options
author | Marcos Paulo de Souza <marcos.souza.org@gmail.com> | 2013-10-09 08:34:12 -0300 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-10-09 15:03:38 +0000 |
commit | 2b91dc3ae674648da6909b0ab96129a7d7d3ed39 (patch) | |
tree | c15ee480564327cc011217dd8ad7aa4bae7ea724 /connectivity/source/drivers/mozab/bootstrap/MMozillaBootstrap.cxx | |
parent | fdba797bd9c2a3fe4de82f92c3ee815c15f8ac84 (diff) |
fdo#54938: Adapt connectivity module to use cppu::supportsService
Change-Id: I885b4c7a60ff51d44138c4f8a56a584c38a9804a
Reviewed-on: https://gerrit.libreoffice.org/6172
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'connectivity/source/drivers/mozab/bootstrap/MMozillaBootstrap.cxx')
-rw-r--r-- | connectivity/source/drivers/mozab/bootstrap/MMozillaBootstrap.cxx | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/connectivity/source/drivers/mozab/bootstrap/MMozillaBootstrap.cxx b/connectivity/source/drivers/mozab/bootstrap/MMozillaBootstrap.cxx index b91bb0e7e433..b68424f8d59d 100644 --- a/connectivity/source/drivers/mozab/bootstrap/MMozillaBootstrap.cxx +++ b/connectivity/source/drivers/mozab/bootstrap/MMozillaBootstrap.cxx @@ -17,7 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ - +#include <cppuhelper/supportsservice.hxx> #include "MMozillaBootstrap.hxx" using namespace com::sun::star::uno; @@ -45,10 +45,6 @@ extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL OMozillaBootstrap_CreateInstance return pMozillaBootstrap; } -// -------------------------------------------------------------------------------- - - -// -------------------------------------------------------------------------------- MozillaBootstrap::MozillaBootstrap( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxFactory) : OMozillaBootstrap_BASE(m_aMutex), m_xMSFactory( _rxFactory ) @@ -104,16 +100,9 @@ OUString SAL_CALL MozillaBootstrap::getImplementationName( ) throw(RuntimeExcep return getImplementationName_Static(); } -//------------------------------------------------------------------ sal_Bool SAL_CALL MozillaBootstrap::supportsService( const OUString& _rServiceName ) throw(RuntimeException) { - Sequence< OUString > aSupported(getSupportedServiceNames()); - const OUString* pSupported = aSupported.getConstArray(); - const OUString* pEnd = pSupported + aSupported.getLength(); - for (;pSupported != pEnd && !pSupported->equals(_rServiceName); ++pSupported) - ; - - return pSupported != pEnd; + return cppu::supportsService(this, _rServiceName); } //------------------------------------------------------------------ |