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 /svx | |
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 'svx')
-rw-r--r-- | svx/source/sidebar/nbdtmg.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/sidebar/nbdtmg.cxx b/svx/source/sidebar/nbdtmg.cxx index f1ee075a3320..a6325389c874 100644 --- a/svx/source/sidebar/nbdtmg.cxx +++ b/svx/source/sidebar/nbdtmg.cxx @@ -308,7 +308,7 @@ void BulletsTypeMgr::RelplaceNumRule(SvxNumRule& aNum, sal_uInt16 nIndex, sal_uI SvxNumberFormat aFmt(aNum.GetLevel(nActLv)); sal_UCS4 cChar = aFmt.GetBulletChar(); - const vcl::Font* pFont = aFmt.GetBulletFont(); + std::optional<vcl::Font> pFont = aFmt.GetBulletFont(); if ( nIndex >= DEFAULT_BULLET_TYPES ) return; |