[Libreoffice-commits] core.git: dbaccess/source extensions/source package/source svl/source

Onur Yilmaz (via logerrit) logerrit at kemper.freedesktop.org
Tue Jan 28 20:22:28 UTC 2020


 dbaccess/source/ui/tabledesign/TableController.cxx |    3 +--
 dbaccess/source/ui/uno/copytablewizard.cxx         |    3 +--
 extensions/source/propctrlr/propcontroller.cxx     |    3 +--
 package/source/zippackage/ZipPackageStream.cxx     |    3 +--
 svl/source/passwordcontainer/passwordcontainer.cxx |    3 +--
 5 files changed, 5 insertions(+), 10 deletions(-)

New commits:
commit 9359d9a94d446fc40c5f98fcdbc3086ecba1f830
Author:     Onur Yilmaz <onuryilmaz0750 at gmail.com>
AuthorDate: Mon Jan 27 23:59:35 2020 +0300
Commit:     Muhammet Kara <muhammet.kara at collabora.com>
CommitDate: Tue Jan 28 21:21:58 2020 +0100

    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 at collabora.com>

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()


More information about the Libreoffice-commits mailing list