diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-02-17 12:19:49 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-02-27 19:42:58 +0100 |
commit | 31e7845339b30a69f06a04619660398fe4267268 (patch) | |
tree | 049ffea6c16bfa05e798ca9dac81aa1a05a17aef /include/svl | |
parent | c97a3592c78ce276a353f95ce68c70a8a39174a0 (diff) |
use more SfxItemSet::CloneAsValue
to reduce heap allocations
Change-Id: Ia755c3e7f9610a5441a447cc74ea38ebcef068bc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130066
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/svl')
-rw-r--r-- | include/svl/isethint.hxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/include/svl/isethint.hxx b/include/svl/isethint.hxx index a96f993dca01..89dbc3b71829 100644 --- a/include/svl/isethint.hxx +++ b/include/svl/isethint.hxx @@ -21,20 +21,18 @@ #include <svl/svldllapi.h> #include <svl/hint.hxx> -#include <memory> - -class SfxItemSet; +#include <svl/itemset.hxx> class SVL_DLLPUBLIC SfxItemSetHint final : public SfxHint { - std::unique_ptr<SfxItemSet> _pItemSet; + SfxItemSet maItemSet; public: SfxItemSetHint( const SfxItemSet &rItemSet ); virtual ~SfxItemSetHint() override; - const SfxItemSet& GetItemSet() const { return *_pItemSet; } + const SfxItemSet& GetItemSet() const { return maItemSet; } }; #endif |