diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2021-08-21 17:04:39 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-08-22 16:23:14 +0200 |
commit | 0f6457b1e867c49bc82f2b18e2e462fb7100051f (patch) | |
tree | 500430f8d8bbfd7fa1a2d49430aa8c7c443ce337 /sd | |
parent | f30c3ff66a24d5031c077be0cb839f5f249c188e (diff) |
don't store vcl::Font with unique_ptr
it is already a COW object, so just use std::optional
Change-Id: I5ced54dbf3dc222316d9bcf3581b36e0f6e6e270
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120818
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/dlg/BulletAndPositionDlg.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/dlg/BulletAndPositionDlg.cxx b/sd/source/ui/dlg/BulletAndPositionDlg.cxx index f8ab303c0dca..e8e5d62ef058 100644 --- a/sd/source/ui/dlg/BulletAndPositionDlg.cxx +++ b/sd/source/ui/dlg/BulletAndPositionDlg.cxx @@ -922,7 +922,7 @@ IMPL_LINK_NOARG(SvxBulletAndPositionDlg, BulletHdl_Impl, weld::Button&, void) SvxCharacterMap aMap(p_Window, nullptr, nullptr); sal_uInt16 nMask = 1; - const vcl::Font* pFmtFont = nullptr; + std::optional<vcl::Font> pFmtFont; bool bSameBullet = true; sal_UCS4 cBullet = 0; bool bFirst = true; |