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

homeboy445 (via logerrit) logerrit at kemper.freedesktop.org
Sun Dec 20 15:14:59 UTC 2020


 desktop/test/deployment/active/active_native.cxx            |    3 +--
 desktop/test/deployment/passive/passive_native.cxx          |    3 +--
 framework/source/fwe/classes/rootactiontriggercontainer.cxx |    3 +--
 3 files changed, 3 insertions(+), 6 deletions(-)

New commits:
commit e37e990650694d7d3a44a38a6bf23751bb33da67
Author:     homeboy445 <akshitsan13 at gmail.com>
AuthorDate: Mon Dec 14 18:46:26 2020 +0530
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Sun Dec 20 16:14:19 2020 +0100

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

diff --git a/desktop/test/deployment/active/active_native.cxx b/desktop/test/deployment/active/active_native.cxx
index b024b5e4ff40..662ff2c16742 100644
--- a/desktop/test/deployment/active/active_native.cxx
+++ b/desktop/test/deployment/active/active_native.cxx
@@ -107,8 +107,7 @@ rtl::OUString Provider::static_getImplementationName() {
 
 css::uno::Sequence< rtl::OUString > Provider::static_getSupportedServiceNames()
 {
-    rtl::OUString name("com.sun.star.test.deployment.active_native");
-    return css::uno::Sequence< rtl::OUString >(&name, 1);
+    return css::uno::Sequence< rtl::OUString >{"com.sun.star.test.deployment.active_native"};
 }
 
 css::uno::Reference< css::frame::XDispatch > Provider::queryDispatch(
diff --git a/desktop/test/deployment/passive/passive_native.cxx b/desktop/test/deployment/passive/passive_native.cxx
index 7b95fff8b537..6af233a72d56 100644
--- a/desktop/test/deployment/passive/passive_native.cxx
+++ b/desktop/test/deployment/passive/passive_native.cxx
@@ -104,8 +104,7 @@ rtl::OUString Provider::static_getImplementationName() {
 
 css::uno::Sequence< rtl::OUString > Provider::static_getSupportedServiceNames()
 {
-    rtl::OUString name("com.sun.star.test.deployment.passive_native");
-    return css::uno::Sequence< rtl::OUString >(&name, 1);
+    return css::uno::Sequence< rtl::OUString >{"com.sun.star.test.deployment.passive_native"};
 }
 
 css::uno::Reference< css::frame::XDispatch > Provider::queryDispatch(
diff --git a/framework/source/fwe/classes/rootactiontriggercontainer.cxx b/framework/source/fwe/classes/rootactiontriggercontainer.cxx
index 8ce69fde740a..4181011db25a 100644
--- a/framework/source/fwe/classes/rootactiontriggercontainer.cxx
+++ b/framework/source/fwe/classes/rootactiontriggercontainer.cxx
@@ -206,8 +206,7 @@ sal_Bool SAL_CALL RootActionTriggerContainer::supportsService( const OUString& S
 
 Sequence< OUString > SAL_CALL RootActionTriggerContainer::getSupportedServiceNames()
 {
-    Sequence< OUString > seqServiceNames { SERVICENAME_ACTIONTRIGGERCONTAINER };
-    return seqServiceNames;
+    return { SERVICENAME_ACTIONTRIGGERCONTAINER };
 }
 
 // XUnoTunnel


More information about the Libreoffice-commits mailing list