summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorMesut Çifci <mesutcifci97@gmail.com>2020-01-16 10:52:24 +0300
committerStephan Bergmann <sbergman@redhat.com>2020-01-16 18:20:40 +0100
commit3b9495f82c5eb371b747bc9424c29c49e7a45a67 (patch)
tree214a1363c55345b77162f55d2a7fbdac12adb693 /connectivity
parent494a1eb0c818eb41122ea9ba46144723ce6d8251 (diff)
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 <sbergman@redhat.com>
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/hsqldb/HColumns.cxx4
-rw-r--r--connectivity/source/drivers/mysql_jdbc/YColumns.cxx4
-rw-r--r--connectivity/source/parse/PColumn.cxx4
3 files changed, 3 insertions, 9 deletions
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<OUString> SAL_CALL OMySQLColumn::getSupportedServiceNames()
{
- Sequence<OUString> 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" };
}