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

Fatih (via logerrit) logerrit at kemper.freedesktop.org
Thu Jun 11 14:16:22 UTC 2020


 framework/source/dispatch/closedispatcher.cxx |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

New commits:
commit f62f200f31ac20c4e28a1e6fbead512d55bdf04f
Author:     Fatih <budakf at itu.edu.tr>
AuthorDate: Tue May 19 04:42:18 2020 +0300
Commit:     Michael Stahl <michael.stahl at cib.de>
CommitDate: Thu Jun 11 16:15:39 2020 +0200

    tdf#88205: Adapt uses of css::uno::Sequence to use initializer_list ctor
    
    Change-Id: I4f87f1735fbb61125f4c3bdd0239b28c6df400de
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94471
    Tested-by: Jenkins
    Reviewed-by: Fatih Budak <budakf at itu.edu.tr>
    Reviewed-by: Michael Stahl <michael.stahl at cib.de>

diff --git a/framework/source/dispatch/closedispatcher.cxx b/framework/source/dispatch/closedispatcher.cxx
index 4724857b847f..2dc4795abdc4 100644
--- a/framework/source/dispatch/closedispatcher.cxx
+++ b/framework/source/dispatch/closedispatcher.cxx
@@ -91,10 +91,7 @@ void SAL_CALL CloseDispatcher::dispatch(const css::util::URL&
 
 css::uno::Sequence< sal_Int16 > SAL_CALL CloseDispatcher::getSupportedCommandGroups()
 {
-    css::uno::Sequence< sal_Int16 > lGroups(2);
-    lGroups[0] = css::frame::CommandGroup::VIEW;
-    lGroups[1] = css::frame::CommandGroup::DOCUMENT;
-    return lGroups;
+    return  css::uno::Sequence< sal_Int16 >{css::frame::CommandGroup::VIEW, css::frame::CommandGroup::DOCUMENT};
 }
 
 css::uno::Sequence< css::frame::DispatchInformation > SAL_CALL CloseDispatcher::getConfigurableDispatchInformation(sal_Int16 nCommandGroup)


More information about the Libreoffice-commits mailing list