summaryrefslogtreecommitdiff
path: root/include/svl
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2021-10-02 16:28:56 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-10-03 20:59:39 +0200
commit503ab1ca9ae11978d9717557546c01ff598aaf88 (patch)
tree8caf01648729b0bbb57705711be77400cc08c7d1 /include/svl
parentc0fa33a82e900558682c676243f279d267ca3eb3 (diff)
Use placement new to avoid one of the allocation calls...
...when cloning a SfxItemSet. Change-Id: I344fee3863006066eade16db9df37599fc210be3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123001 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/svl')
-rw-r--r--include/svl/itemset.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/svl/itemset.hxx b/include/svl/itemset.hxx
index 5ce13bb1f4c8..5f9da72e3339 100644
--- a/include/svl/itemset.hxx
+++ b/include/svl/itemset.hxx
@@ -70,6 +70,8 @@ protected:
SfxItemSet( SfxItemPool&, SfxAllItemSetFlag );
/** special constructor for SfxItemSetFixed */
SfxItemSet( SfxItemPool&, WhichRangesContainer&& ranges, SfxPoolItem const ** ppItems );
+ /** special constructor for Clone */
+ SfxItemSet( const SfxItemSet&, SfxPoolItem const ** ppItems );
public:
SfxItemSet( const SfxItemSet& );