From 3b9495f82c5eb371b747bc9424c29c49e7a45a67 Mon Sep 17 00:00:00 2001 From: Mesut Çifci Date: Thu, 16 Jan 2020 10:52:24 +0300 Subject: tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctor Change-Id: Ic6ed5dcf6343a4ff59a1f69c77c82b03b4ee6198 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86904 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- connectivity/source/drivers/hsqldb/HColumns.cxx | 4 +--- connectivity/source/drivers/mysql_jdbc/YColumns.cxx | 4 +--- connectivity/source/parse/PColumn.cxx | 4 +--- 3 files changed, 3 insertions(+), 9 deletions(-) (limited to 'connectivity') diff --git a/connectivity/source/drivers/hsqldb/HColumns.cxx b/connectivity/source/drivers/hsqldb/HColumns.cxx index da9b8bbd442b..3f03c3616bc1 100644 --- a/connectivity/source/drivers/hsqldb/HColumns.cxx +++ b/connectivity/source/drivers/hsqldb/HColumns.cxx @@ -69,9 +69,7 @@ void OHSQLColumn::construct() Sequence< OUString > SAL_CALL OHSQLColumn::getSupportedServiceNames( ) { - Sequence< OUString > aSupported { "com.sun.star.sdbcx.Column" }; - - return aSupported; + return { "com.sun.star.sdbcx.Column" }; } diff --git a/connectivity/source/drivers/mysql_jdbc/YColumns.cxx b/connectivity/source/drivers/mysql_jdbc/YColumns.cxx index cb55be53dbd5..54beb77ca061 100644 --- a/connectivity/source/drivers/mysql_jdbc/YColumns.cxx +++ b/connectivity/source/drivers/mysql_jdbc/YColumns.cxx @@ -66,9 +66,7 @@ void OMySQLColumn::construct() Sequence SAL_CALL OMySQLColumn::getSupportedServiceNames() { - Sequence aSupported{ "com.sun.star.sdbcx.Column" }; - - return aSupported; + return { "com.sun.star.sdbcx.Column" }; } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/connectivity/source/parse/PColumn.cxx b/connectivity/source/parse/PColumn.cxx index 3091613fc867..0074d2be6824 100644 --- a/connectivity/source/parse/PColumn.cxx +++ b/connectivity/source/parse/PColumn.cxx @@ -264,9 +264,7 @@ void OOrderColumn::construct() css::uno::Sequence< OUString > SAL_CALL OOrderColumn::getSupportedServiceNames( ) { - css::uno::Sequence< OUString > aSupported { "com.sun.star.sdb.OrderColumn" }; - - return aSupported; + return { "com.sun.star.sdb.OrderColumn" }; } -- cgit