diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-08-18 10:12:12 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-08-18 12:01:00 +0200 |
commit | a6535669f9532b61ee5906d4b1339bc9af4b0882 (patch) | |
tree | 669d55c93400ff2dce49ee1953f47e6d496518bf /include | |
parent | f0454fe3bb5f8b589cc994203060a94d5cdad0a4 (diff) |
use more pass-by-value in SfxItemSet
which avoids some copying
Change-Id: Id774c8947d0c2676425a1a192e0ac28c8f8402db
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138468
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/svl/itemset.hxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/include/svl/itemset.hxx b/include/svl/itemset.hxx index b6404b6cc984..52966ecc96d6 100644 --- a/include/svl/itemset.hxx +++ b/include/svl/itemset.hxx @@ -51,8 +51,6 @@ friend class SfxAllItemSet; private: SVL_DLLPRIVATE void RecreateRanges_Impl(const WhichRangesContainer& pNewRanges); - SfxItemSet( SfxItemPool & pool, const WhichRangesContainer& wids, std::size_t items ); - public: SfxPoolItem const** GetItems_Impl() const { return m_ppItems; } @@ -77,8 +75,7 @@ public: SfxItemSet( const SfxItemSet& ); SfxItemSet( SfxItemSet&& ) noexcept; SfxItemSet( SfxItemPool& ); - SfxItemSet( SfxItemPool&, const WhichRangesContainer& ranges ); - SfxItemSet( SfxItemPool&, WhichRangesContainer&& ranges ); + SfxItemSet( SfxItemPool&, WhichRangesContainer ranges ); SfxItemSet( SfxItemPool& rPool, sal_uInt16 nWhichStart, sal_uInt16 nWhichEnd ) : SfxItemSet(rPool, WhichRangesContainer(nWhichStart, nWhichEnd)) {} |