diff options
Diffstat (limited to 'connectivity/source/sdbcx/VIndex.cxx')
-rw-r--r-- | connectivity/source/sdbcx/VIndex.cxx | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/connectivity/source/sdbcx/VIndex.cxx b/connectivity/source/sdbcx/VIndex.cxx index f60731646089..65a45208ebad 100644 --- a/connectivity/source/sdbcx/VIndex.cxx +++ b/connectivity/source/sdbcx/VIndex.cxx @@ -23,8 +23,9 @@ #include <connectivity/dbexception.hxx> #include <comphelper/sequence.hxx> #include "connectivity/sdbcx/VCollection.hxx" +#include <cppuhelper/supportsservice.hxx> #include "TConnection.hxx" -// ------------------------------------------------------------------------- + using namespace ::connectivity; using namespace ::dbtools; using namespace ::connectivity::sdbcx; @@ -54,16 +55,10 @@ OUString SAL_CALL OIndex::getImplementationName( ) throw (::com::sun::star::uno return aSupported; } -// ----------------------------------------------------------------------------- + sal_Bool SAL_CALL OIndex::supportsService( const OUString& _rServiceName ) throw(::com::sun::star::uno::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); } // ------------------------------------------------------------------------- OIndex::OIndex(sal_Bool _bCase) : ODescriptor_BASE(m_aMutex) |