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

Vishwas (via logerrit) logerrit at kemper.freedesktop.org
Mon Jan 11 12:01:50 UTC 2021


 framework/source/jobs/jobdispatch.cxx      |    3 +--
 framework/source/services/pathsettings.cxx |    3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)

New commits:
commit 5d07a4fa1d6d669ee9796ff4babdde0644d2eb59
Author:     Vishwas <19ucc001 at lnmiit.ac.in>
AuthorDate: Tue Jan 5 11:48:07 2021 +0530
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Mon Jan 11 13:01:08 2021 +0100

    tdf#88205: Adapt uses of css::uno::Sequence to use initializer_list ctor
    
    Change-Id: Ic08f7d7c2b8da6dd5ede2a719633d123412de3ef
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108737
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/framework/source/jobs/jobdispatch.cxx b/framework/source/jobs/jobdispatch.cxx
index 6ec94cb3293c..964f128e9110 100644
--- a/framework/source/jobs/jobdispatch.cxx
+++ b/framework/source/jobs/jobdispatch.cxx
@@ -99,8 +99,7 @@ public:
 
     virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override
     {
-        css::uno::Sequence< OUString > aSeq { "com.sun.star.frame.ProtocolHandler" };
-        return aSeq;
+        return {"com.sun.star.frame.ProtocolHandler"};
     }
 
     // Xinitialization
diff --git a/framework/source/services/pathsettings.cxx b/framework/source/services/pathsettings.cxx
index 72c15015f586..c59ef728ccb5 100644
--- a/framework/source/services/pathsettings.cxx
+++ b/framework/source/services/pathsettings.cxx
@@ -185,8 +185,7 @@ public:
 
     virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override
     {
-        css::uno::Sequence< OUString > aSeq { "com.sun.star.util.PathSettings" };
-        return aSeq;
+        return {"com.sun.star.util.PathSettings"};
     }
 
     // XInterface


More information about the Libreoffice-commits mailing list