summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2021-07-19 11:04:45 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2021-07-19 16:33:01 +0200
commitb1668edf7fa3ad8c32bcc4d73821770f2df011ca (patch)
treecb93a00ca59f770e616668af15fdc6a50e1627a1 /svl
parent5b3c530016927d3e91e3124e124f7b428ab285ac (diff)
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 <mike.kaganski@collabora.com> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'svl')
-rw-r--r--svl/qa/unit/items/stylepool.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/svl/qa/unit/items/stylepool.cxx b/svl/qa/unit/items/stylepool.cxx
index 5fb94f29f9cd..01f0d8867b48 100644
--- a/svl/qa/unit/items/stylepool.cxx
+++ b/svl/qa/unit/items/stylepool.cxx
@@ -32,20 +32,20 @@ CPPUNIT_TEST_FIXTURE(StylePoolTest, testIterationOrder)
pPool->SetDefaults(&aDefaults);
{
// Set up parents in mixed order to make sure we do not sort by pointer address.
- SfxItemSet aParent1(*pPool, svl::Items<1, 1>{});
- SfxItemSet aChild1(*pPool, svl::Items<1, 1>{});
+ SfxItemSet aParent1(*pPool, svl::Items<1, 1>);
+ SfxItemSet aChild1(*pPool, svl::Items<1, 1>);
aChild1.SetParent(&aParent1);
SfxStringItem aItem1(1, "Item1");
aChild1.Put(aItem1);
- SfxItemSet aParent3(*pPool, svl::Items<1, 1>{});
- SfxItemSet aChild3(*pPool, svl::Items<1, 1>{});
+ SfxItemSet aParent3(*pPool, svl::Items<1, 1>);
+ SfxItemSet aChild3(*pPool, svl::Items<1, 1>);
aChild3.SetParent(&aParent3);
SfxStringItem aItem3(1, "Item3");
aChild3.Put(aItem3);
- SfxItemSet aParent2(*pPool, svl::Items<1, 1>{});
- SfxItemSet aChild2(*pPool, svl::Items<1, 1>{});
+ SfxItemSet aParent2(*pPool, svl::Items<1, 1>);
+ SfxItemSet aChild2(*pPool, svl::Items<1, 1>);
aChild2.SetParent(&aParent2);
SfxStringItem aItem2(1, "Item2");
aChild2.Put(aItem2);