summaryrefslogtreecommitdiff
path: root/svx/inc
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2022-06-04 19:19:15 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-06-05 08:23:36 +0200
commite0e944a42059271d082f8bd5121f30a4536fb8f3 (patch)
treedbf7006c7aa94eb47df0bef742e87dabbb6854a5 /svx/inc
parentc1898a4d1b38e0077416a104e2b47573ce207ffa (diff)
no need to allocate this separately
Change-Id: I30df477cd708d021fc5b6fcfa9925e1c99be6650 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135429 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/inc')
-rw-r--r--svx/inc/CommonStylePreviewRenderer.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/svx/inc/CommonStylePreviewRenderer.hxx b/svx/inc/CommonStylePreviewRenderer.hxx
index 1c21db99b378..b613f489f7b9 100644
--- a/svx/inc/CommonStylePreviewRenderer.hxx
+++ b/svx/inc/CommonStylePreviewRenderer.hxx
@@ -9,8 +9,9 @@
#pragma once
-#include <memory>
+#include <optional>
+#include <editeng/svxfont.hxx>
#include <sfx2/objsh.hxx>
#include <sfx2/StylePreviewRenderer.hxx>
#include <rtl/ustring.hxx>
@@ -19,13 +20,12 @@
class OutputDevice;
class SfxStyleSheetBase;
-class SvxFont;
namespace svx
{
class CommonStylePreviewRenderer final : public sfx2::StylePreviewRenderer
{
- std::unique_ptr<SvxFont> m_pFont;
+ std::optional<SvxFont> m_oFont;
Color maFontColor;
Color maHighlightColor;
Color maBackgroundColor;