diff options
author | Asela Dasanayaka <rukmal.tb@gmail.com> | 2016-10-13 15:58:45 +0530 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2016-10-13 14:34:31 +0000 |
commit | 83cc9a3fae1cf8fa8b6753d1db8ccf7226797613 (patch) | |
tree | 0fee3fb6d8b9d80cead4cae63fa596693f618b01 /connectivity | |
parent | e78b5e9861de1549c3ed889821e67931d92424b7 (diff) |
tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctor
Fix a bug on connectivity/source/drivers/ado/AResultSet.cxx
Change-Id: I164732100ff3bdc4e73f80e2495610cb53581b0d
Reviewed-on: https://gerrit.libreoffice.org/29758
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/ado/AResultSet.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/connectivity/source/drivers/ado/AResultSet.cxx b/connectivity/source/drivers/ado/AResultSet.cxx index 020c643b487b..f22c99f917c1 100644 --- a/connectivity/source/drivers/ado/AResultSet.cxx +++ b/connectivity/source/drivers/ado/AResultSet.cxx @@ -61,10 +61,7 @@ OUString SAL_CALL OResultSet::getImplementationName( ) throw (css::uno::Runtime css::uno::Sequence< OUString > SAL_CALL OResultSet::getSupportedServiceNames( ) throw(css::uno::RuntimeException) { - css::uno::Sequence< OUString > aSupported(2); - aSupported[0] = "com.sun.star.sdbc.ResultSet"; - aSupported[1] = "com.sun.star.sdbcx.ResultSet"; - return aSupported; + return {"com.sun.star.sdbc.ResultSet","com.sun.star.sdbcx.ResultSet"}; } sal_Bool SAL_CALL OResultSet::supportsService( const OUString& _rServiceName ) throw(css::uno::RuntimeException) |