diff options
author | Fatih <budakf@itu.edu.tr> | 2020-05-19 04:42:18 +0300 |
---|---|---|
committer | Michael Stahl <michael.stahl@cib.de> | 2020-06-11 16:15:39 +0200 |
commit | f62f200f31ac20c4e28a1e6fbead512d55bdf04f (patch) | |
tree | 7bea5b56ebf89fd856e60e13cccef96f9d9bf38c | |
parent | 662a0fcdac5fd5b8709cc5bf2589cbe5b9dfc077 (diff) |
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@itu.edu.tr>
Reviewed-by: Michael Stahl <michael.stahl@cib.de>
-rw-r--r-- | framework/source/dispatch/closedispatcher.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
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) |