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 /svx/source/styles | |
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 'svx/source/styles')
-rw-r--r-- | svx/source/styles/CommonStylePreviewRenderer.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/styles/CommonStylePreviewRenderer.cxx b/svx/source/styles/CommonStylePreviewRenderer.cxx index 65690bed792b..fbd03539fda5 100644 --- a/svx/source/styles/CommonStylePreviewRenderer.cxx +++ b/svx/source/styles/CommonStylePreviewRenderer.cxx @@ -62,7 +62,7 @@ bool CommonStylePreviewRenderer::recalculate() { m_pFont.reset(); - std::unique_ptr<SfxItemSet> pItemSet(mpStyle->GetItemSetForPreview()); + std::optional<SfxItemSet> pItemSet(mpStyle->GetItemSetForPreview()); if (!pItemSet) return false; |