From b1668edf7fa3ad8c32bcc4d73821770f2df011ca Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Mon, 19 Jul 2021 11:04:45 +0300 Subject: Move svl::Items to include/svl/whichranges.hxx, and unify its usage ... in WhichRangesContainer and SfxItemSet ctors. Now it's not needed to explicitly use 'value' in WhichRangesContainer's ctor, or create an instance for use in SfxItemSet ctor (svl::Items is already defined as a template value of corresponding type). Instead of WhichRangesContainer Foo(svl::Items<1, 2>::value); SfxItemSet Bar(rItemPool, svl::Items<1, 2>{}); now use: WhichRangesContainer Foo(svl::Items<1, 2>); SfxItemSet Bar(rItemPool, svl::Items<1, 2>); Change-Id: I4681d952b6442732025e5a26768098878907a238 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119157 Tested-by: Mike Kaganski Reviewed-by: Mike Kaganski --- sd/source/ui/func/fuscale.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sd/source/ui/func/fuscale.cxx') diff --git a/sd/source/ui/func/fuscale.cxx b/sd/source/ui/func/fuscale.cxx index 9bcca7f95b3b..1ea9a588c441 100644 --- a/sd/source/ui/func/fuscale.cxx +++ b/sd/source/ui/func/fuscale.cxx @@ -66,7 +66,7 @@ void FuScale::DoExecute( SfxRequest& rReq ) if( !pArgs ) { - SfxItemSet aNewAttr( mpDoc->GetPool(), svl::Items{} ); + SfxItemSet aNewAttr( mpDoc->GetPool(), svl::Items ); std::unique_ptr pZoomItem; SvxZoomEnableFlags nZoomValues = SvxZoomEnableFlags::ALL; -- cgit