summaryrefslogtreecommitdiff
path: root/connectivity/source/sdbcx/VIndex.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'connectivity/source/sdbcx/VIndex.cxx')
-rw-r--r--connectivity/source/sdbcx/VIndex.cxx8
1 files changed, 1 insertions, 7 deletions
diff --git a/connectivity/source/sdbcx/VIndex.cxx b/connectivity/source/sdbcx/VIndex.cxx
index e510195524ea..4939bb702085 100644
--- a/connectivity/source/sdbcx/VIndex.cxx
+++ b/connectivity/source/sdbcx/VIndex.cxx
@@ -48,13 +48,7 @@ OUString SAL_CALL OIndex::getImplementationName( )
css::uno::Sequence< OUString > SAL_CALL OIndex::getSupportedServiceNames( )
{
- css::uno::Sequence< OUString > aSupported(1);
- if(isNew())
- aSupported[0] = "com.sun.star.sdbcx.IndexDescriptor";
- else
- aSupported[0] = "com.sun.star.sdbcx.Index";
-
- return aSupported;
+ return { isNew()?OUString("com.sun.star.sdbcx.IndexDescriptor"):OUString("com.sun.star.sdbcx.Index") };
}
sal_Bool SAL_CALL OIndex::supportsService( const OUString& _rServiceName )