framework/source/dispatch/closedispatcher.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
New commits: commit f62f200f31ac20c4e28a1e6fbead512d55bdf04f Author: Fatih <bud...@itu.edu.tr> AuthorDate: Tue May 19 04:42:18 2020 +0300 Commit: Michael Stahl <michael.st...@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 <bud...@itu.edu.tr> Reviewed-by: Michael Stahl <michael.st...@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) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits