diff options
Diffstat (limited to 'connectivity/source/sdbcx/VIndexColumn.cxx')
-rw-r--r-- | connectivity/source/sdbcx/VIndexColumn.cxx | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/connectivity/source/sdbcx/VIndexColumn.cxx b/connectivity/source/sdbcx/VIndexColumn.cxx index b4952784e872..cf184346b375 100644 --- a/connectivity/source/sdbcx/VIndexColumn.cxx +++ b/connectivity/source/sdbcx/VIndexColumn.cxx @@ -18,6 +18,7 @@ */ #include "connectivity/sdbcx/VIndexColumn.hxx" +#include <cppuhelper/supportsservice.hxx> #include "TConnection.hxx" using namespace connectivity; @@ -42,16 +43,10 @@ OUString SAL_CALL OIndexColumn::getImplementationName( ) throw (::com::sun::sta return aSupported; } -// ----------------------------------------------------------------------------- + sal_Bool SAL_CALL OIndexColumn::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); } // ----------------------------------------------------------------------------- OIndexColumn::OIndexColumn(sal_Bool _bCase) : OColumn(_bCase), m_IsAscending(sal_True) |