summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOnur Yilmaz <onuryilmaz0750@gmail.com>2020-01-27 23:59:35 +0300
committerMuhammet Kara <muhammet.kara@collabora.com>2020-01-28 21:21:58 +0100
commit9359d9a94d446fc40c5f98fcdbc3086ecba1f830 (patch)
tree25489372bc819274432b48721660159f7d7bc135
parent627e40b9ef7ba8e9b5b06adc4a553d95cd5e5560 (diff)
tdf#88205: Adapt uses of css::uno::Sequence to use initializer_list ctor
Change-Id: Ie5a381fc5e5b73490ab8b2036ef2a1164e475e8f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87557 Tested-by: Jenkins Reviewed-by: Muhammet Kara <muhammet.kara@collabora.com>
-rw-r--r--dbaccess/source/ui/tabledesign/TableController.cxx3
-rw-r--r--dbaccess/source/ui/uno/copytablewizard.cxx3
-rw-r--r--extensions/source/propctrlr/propcontroller.cxx3
-rw-r--r--package/source/zippackage/ZipPackageStream.cxx3
-rw-r--r--svl/source/passwordcontainer/passwordcontainer.cxx3
5 files changed, 5 insertions, 10 deletions
diff --git a/dbaccess/source/ui/tabledesign/TableController.cxx b/dbaccess/source/ui/tabledesign/TableController.cxx
index 2b39fc45c477..4d0cb028b148 100644
--- a/dbaccess/source/ui/tabledesign/TableController.cxx
+++ b/dbaccess/source/ui/tabledesign/TableController.cxx
@@ -119,8 +119,7 @@ OUString OTableController::getImplementationName_Static()
Sequence< OUString> OTableController::getSupportedServiceNames_Static()
{
- Sequence<OUString> aSupported { "com.sun.star.sdb.TableDesign" };
- return aSupported;
+ return { "com.sun.star.sdb.TableDesign" };
}
Sequence< OUString> SAL_CALL OTableController::getSupportedServiceNames()
diff --git a/dbaccess/source/ui/uno/copytablewizard.cxx b/dbaccess/source/ui/uno/copytablewizard.cxx
index 90fb3cc95b4f..884ad73eef4a 100644
--- a/dbaccess/source/ui/uno/copytablewizard.cxx
+++ b/dbaccess/source/ui/uno/copytablewizard.cxx
@@ -435,8 +435,7 @@ css::uno::Sequence<OUString> SAL_CALL CopyTableWizard::getSupportedServiceNames(
css::uno::Sequence<OUString> CopyTableWizard::getSupportedServiceNames_Static()
{
- css::uno::Sequence<OUString> aSupported { "com.sun.star.sdb.application.CopyTableWizard" };
- return aSupported;
+ return { "com.sun.star.sdb.application.CopyTableWizard" };
}
Reference< XPropertySetInfo > SAL_CALL CopyTableWizard::getPropertySetInfo()
diff --git a/extensions/source/propctrlr/propcontroller.cxx b/extensions/source/propctrlr/propcontroller.cxx
index 3cfd255ad1b7..54b6a1bea66a 100644
--- a/extensions/source/propctrlr/propcontroller.cxx
+++ b/extensions/source/propctrlr/propcontroller.cxx
@@ -545,8 +545,7 @@ namespace pcr
Sequence< OUString > OPropertyBrowserController::getSupportedServiceNames_static( )
{
- Sequence< OUString > aSupported { "com.sun.star.inspection.ObjectInspector" };
- return aSupported;
+ return { "com.sun.star.inspection.ObjectInspector" };
}
diff --git a/package/source/zippackage/ZipPackageStream.cxx b/package/source/zippackage/ZipPackageStream.cxx
index 745157cfd02e..ab237a15f5e4 100644
--- a/package/source/zippackage/ZipPackageStream.cxx
+++ b/package/source/zippackage/ZipPackageStream.cxx
@@ -1321,8 +1321,7 @@ OUString ZipPackageStream::getImplementationName()
Sequence< OUString > ZipPackageStream::getSupportedServiceNames()
{
- Sequence<OUString> aNames { "com.sun.star.packages.PackageStream" };
- return aNames;
+ return { "com.sun.star.packages.PackageStream" };
}
sal_Bool SAL_CALL ZipPackageStream::supportsService( OUString const & rServiceName )
diff --git a/svl/source/passwordcontainer/passwordcontainer.cxx b/svl/source/passwordcontainer/passwordcontainer.cxx
index acafd8986f5f..8bdc1adb7314 100644
--- a/svl/source/passwordcontainer/passwordcontainer.cxx
+++ b/svl/source/passwordcontainer/passwordcontainer.cxx
@@ -1309,8 +1309,7 @@ Sequence< OUString > SAL_CALL PasswordContainer::getSupportedServiceNames( )
Sequence< OUString > PasswordContainer::impl_getStaticSupportedServiceNames( )
{
- Sequence< OUString > aRet { "com.sun.star.task.PasswordContainer" };
- return aRet;
+ return { "com.sun.star.task.PasswordContainer" };
}
OUString PasswordContainer::impl_getStaticImplementationName()