diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2019-08-17 15:44:34 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2019-08-17 18:43:28 +0200 |
commit | e6196c6c9c85bdf446899a50da81adbfb7037d85 (patch) | |
tree | ef59b4a3de69190e79bc488dd514486554905ded /connectivity/source/sdbcx | |
parent | d83472ab6fde650772307f7f93a0a4b96e7ea6a8 (diff) |
tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctor
in connectivity
Change-Id: I00eeffd9a13cfad6bbf84ea2d4ab720eb8c45ed8
Reviewed-on: https://gerrit.libreoffice.org/77635
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'connectivity/source/sdbcx')
-rw-r--r-- | connectivity/source/sdbcx/VColumn.cxx | 8 | ||||
-rw-r--r-- | connectivity/source/sdbcx/VIndex.cxx | 8 | ||||
-rw-r--r-- | connectivity/source/sdbcx/VIndexColumn.cxx | 7 | ||||
-rw-r--r-- | connectivity/source/sdbcx/VKey.cxx | 8 | ||||
-rw-r--r-- | connectivity/source/sdbcx/VKeyColumn.cxx | 8 | ||||
-rw-r--r-- | connectivity/source/sdbcx/VTable.cxx | 8 |
6 files changed, 6 insertions, 41 deletions
diff --git a/connectivity/source/sdbcx/VColumn.cxx b/connectivity/source/sdbcx/VColumn.cxx index 41a515266890..ad26e76a6754 100644 --- a/connectivity/source/sdbcx/VColumn.cxx +++ b/connectivity/source/sdbcx/VColumn.cxx @@ -43,13 +43,7 @@ OUString SAL_CALL OColumn::getImplementationName( ) css::uno::Sequence< OUString > SAL_CALL OColumn::getSupportedServiceNames( ) { - css::uno::Sequence< OUString > aSupported(1); - if(isNew()) - aSupported[0] = "com.sun.star.sdbcx.ColumnDescriptor"; - else - aSupported[0] = "com.sun.star.sdbcx.Column"; - - return aSupported; + return { isNew()?OUString("com.sun.star.sdbcx.ColumnDescriptor"):OUString("com.sun.star.sdbcx.Column") }; } sal_Bool SAL_CALL OColumn::supportsService( const OUString& _rServiceName ) 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 ) diff --git a/connectivity/source/sdbcx/VIndexColumn.cxx b/connectivity/source/sdbcx/VIndexColumn.cxx index 6bda93ac2a01..41436ee02733 100644 --- a/connectivity/source/sdbcx/VIndexColumn.cxx +++ b/connectivity/source/sdbcx/VIndexColumn.cxx @@ -36,12 +36,7 @@ OUString SAL_CALL OIndexColumn::getImplementationName( ) css::uno::Sequence< OUString > SAL_CALL OIndexColumn::getSupportedServiceNames( ) { - css::uno::Sequence< OUString > aSupported(1); - if(isNew()) - aSupported[0] = "com.sun.star.sdbcx.IndexColumnDescriptor"; - else - aSupported[0] = "com.sun.star.sdbcx.IndexColumn"; - return aSupported; + return { isNew()?OUString("com.sun.star.sdbcx.IndexColumnDescriptor"):OUString("com.sun.star.sdbcx.IndexColumn") }; } sal_Bool SAL_CALL OIndexColumn::supportsService( const OUString& _rServiceName ) diff --git a/connectivity/source/sdbcx/VKey.cxx b/connectivity/source/sdbcx/VKey.cxx index f8ef22d52728..25d0526875e4 100644 --- a/connectivity/source/sdbcx/VKey.cxx +++ b/connectivity/source/sdbcx/VKey.cxx @@ -46,13 +46,7 @@ OUString SAL_CALL OKey::getImplementationName( ) css::uno::Sequence< OUString > SAL_CALL OKey::getSupportedServiceNames( ) { - css::uno::Sequence< OUString > aSupported(1); - if(isNew()) - aSupported[0] = "com.sun.star.sdbcx.KeyDescriptor"; - else - aSupported[0] = "com.sun.star.sdbcx.Key"; - - return aSupported; + return { isNew()?OUString("com.sun.star.sdbcx.KeyDescriptor"):OUString("com.sun.star.sdbcx.Key") }; } sal_Bool SAL_CALL OKey::supportsService( const OUString& _rServiceName ) diff --git a/connectivity/source/sdbcx/VKeyColumn.cxx b/connectivity/source/sdbcx/VKeyColumn.cxx index 902b907ee7f1..49a779a01350 100644 --- a/connectivity/source/sdbcx/VKeyColumn.cxx +++ b/connectivity/source/sdbcx/VKeyColumn.cxx @@ -37,13 +37,7 @@ OUString SAL_CALL OKeyColumn::getImplementationName( ) css::uno::Sequence< OUString > SAL_CALL OKeyColumn::getSupportedServiceNames( ) { - css::uno::Sequence< OUString > aSupported(1); - if(isNew()) - aSupported[0] = "com.sun.star.sdbcx.KeyColumnDescriptor"; - else - aSupported[0] = "com.sun.star.sdbcx.KeyColumn"; - - return aSupported; + return { isNew()?OUString("com.sun.star.sdbcx.KeyColumnDescriptor"):OUString("com.sun.star.sdbcx.KeyColumn") }; } sal_Bool SAL_CALL OKeyColumn::supportsService( const OUString& _rServiceName ) diff --git a/connectivity/source/sdbcx/VTable.cxx b/connectivity/source/sdbcx/VTable.cxx index 2526f6f088c9..70e9c75d4ee5 100644 --- a/connectivity/source/sdbcx/VTable.cxx +++ b/connectivity/source/sdbcx/VTable.cxx @@ -51,13 +51,7 @@ OUString SAL_CALL OTable::getImplementationName( ) css::uno::Sequence< OUString > SAL_CALL OTable::getSupportedServiceNames( ) { - css::uno::Sequence< OUString > aSupported(1); - if(isNew()) - aSupported[0] = "com.sun.star.sdbcx.TableDescriptor"; - else - aSupported[0] = "com.sun.star.sdbcx.Table"; - - return aSupported; + return { isNew()?OUString("com.sun.star.sdbcx.TableDescriptor"):OUString("com.sun.star.sdbcx.Table") }; } sal_Bool SAL_CALL OTable::supportsService( const OUString& _rServiceName ) |