From 51f00abe7a17c91476375babaa69f4c7b1883c09 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 1 Jul 2021 12:26:35 +0200 Subject: 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 Reviewed-by: Noel Grandin --- svx/source/styles/CommonStylePreviewRenderer.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'svx/source/styles') 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 pItemSet(mpStyle->GetItemSetForPreview()); + std::optional pItemSet(mpStyle->GetItemSetForPreview()); if (!pItemSet) return false; -- cgit