[Libreoffice-commits] core.git: connectivity/source

Asela Dasanayaka rukmal.tb at gmail.com
Thu Oct 13 14:38:08 UTC 2016


 connectivity/source/drivers/ado/AResultSet.cxx |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

New commits:
commit 83cc9a3fae1cf8fa8b6753d1db8ccf7226797613
Author: Asela Dasanayaka <rukmal.tb at gmail.com>
Date:   Thu Oct 13 15:58:45 2016 +0530

    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 at libreoffice.org>
    Reviewed-by: Michael Stahl <mstahl at redhat.com>

diff --git a/connectivity/source/drivers/ado/AResultSet.cxx b/connectivity/source/drivers/ado/AResultSet.cxx
index 020c643..f22c99f 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)


More information about the Libreoffice-commits mailing list