diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-07-01 12:26:35 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-07-02 15:53:15 +0200 |
commit | 51f00abe7a17c91476375babaa69f4c7b1883c09 (patch) | |
tree | a327834dfa25e31425e58b657e9b8d887acee74e /svl/source | |
parent | 2024780f9e169a6c1d167e494d37f46f7640dc97 (diff) |
no need to allocate return val on heap for GetItemSetForPreview
Change-Id: I261182ec2348df045171c5e1beb33579e2c0c766
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118284
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svl/source')
-rw-r--r-- | svl/source/items/style.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svl/source/items/style.cxx b/svl/source/items/style.cxx index 8036c3ce4907..2e54c9f53439 100644 --- a/svl/source/items/style.cxx +++ b/svl/source/items/style.cxx @@ -262,9 +262,9 @@ SfxItemSet& SfxStyleSheetBase::GetItemSet() return *pSet; } -std::unique_ptr<SfxItemSet> SfxStyleSheetBase::GetItemSetForPreview() +std::optional<SfxItemSet> SfxStyleSheetBase::GetItemSetForPreview() { - return std::make_unique<SfxItemSet>(GetItemSet()); + return GetItemSet(); } /** |