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 --- sc/source/ui/dbgui/validate.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sc/source/ui/dbgui/validate.cxx') diff --git a/sc/source/ui/dbgui/validate.cxx b/sc/source/ui/dbgui/validate.cxx index a3fca1d8822f..5fa84ab3d5cb 100644 --- a/sc/source/ui/dbgui/validate.cxx +++ b/sc/source/ui/dbgui/validate.cxx @@ -78,7 +78,7 @@ namespace ValidListType = css::sheet::TableValidationVisibility; const WhichRangesContainer ScTPValidationValue::pValueRanges(svl::Items< FID_VALID_LISTTYPE, FID_VALID_LISTTYPE, FID_VALID_MODE, FID_VALID_ERRTEXT ->::value); +>); ScValidationDlg::ScValidationDlg(weld::Window* pParent, const SfxItemSet* pArgSet, ScTabViewShell *pTabViewSh) -- cgit v1.2.3