summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-07-01 12:26:35 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-07-02 15:53:15 +0200
commit51f00abe7a17c91476375babaa69f4c7b1883c09 (patch)
treea327834dfa25e31425e58b657e9b8d887acee74e /svl
parent2024780f9e169a6c1d167e494d37f46f7640dc97 (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')
-rw-r--r--svl/source/items/style.cxx4
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();
}
/**