diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-07-01 11:01:40 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-07-02 15:34:38 +0200 |
commit | 2024780f9e169a6c1d167e494d37f46f7640dc97 (patch) | |
tree | 2488052807d613f63f6afe9a624d8f8fddda674b /sd/source/ui/view/drviewsf.cxx | |
parent | d656191ec308d4280b93c7169372e543a255d108 (diff) |
can allocate these SfxItemSet on the stack
Change-Id: I85a749429a3a14aca5c6eaeaa5da37b25eb9f730
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118283
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source/ui/view/drviewsf.cxx')
-rw-r--r-- | sd/source/ui/view/drviewsf.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/ui/view/drviewsf.cxx b/sd/source/ui/view/drviewsf.cxx index 3afa8848ef2b..6a9ebdc94f1c 100644 --- a/sd/source/ui/view/drviewsf.cxx +++ b/sd/source/ui/view/drviewsf.cxx @@ -714,11 +714,11 @@ void DrawViewShell::GetAttrState( SfxItemSet& rSet ) nWhich = aIter.NextWhich(); } - std::unique_ptr<SfxItemSet> pSet; + std::optional<SfxItemSet> pSet; if( bAttr ) { - pSet.reset(new SfxItemSet( GetDoc()->GetPool() )); + pSet.emplace( GetDoc()->GetPool() ); mpDrawView->GetAttributes( *pSet ); rSet.Put( *pSet, false ); } |