diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2023-12-15 21:21:55 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-12-16 10:44:24 +0100 |
commit | dc3849eeb7cc3319659f0bf8d3dc3355e670b9e9 (patch) | |
tree | 1184eed705bd8d5483436072d5a1f5aacc79d353 /chart2/source/controller/dialogs | |
parent | no need to allocate this on the heap (diff) | |
download | core-dc3849eeb7cc3319659f0bf8d3dc3355e670b9e9.tar.gz core-dc3849eeb7cc3319659f0bf8d3dc3355e670b9e9.zip |
no need to allocate this on the heap
Change-Id: I89d4e680e6c8aabcc543605a0e496b3086dd2d3a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160838
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2/source/controller/dialogs')
-rw-r--r-- | chart2/source/controller/dialogs/TitleDialogData.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chart2/source/controller/dialogs/TitleDialogData.cxx b/chart2/source/controller/dialogs/TitleDialogData.cxx index f110b3d520bd..526c1fbc8430 100644 --- a/chart2/source/controller/dialogs/TitleDialogData.cxx +++ b/chart2/source/controller/dialogs/TitleDialogData.cxx @@ -31,7 +31,7 @@ namespace chart using namespace ::com::sun::star; using namespace ::com::sun::star::chart2; -TitleDialogData::TitleDialogData( std::unique_ptr<ReferenceSizeProvider> pRefSizeProvider ) +TitleDialogData::TitleDialogData( std::optional<ReferenceSizeProvider> pRefSizeProvider ) : aPossibilityList{ true, true, true, true, true, true, true } , aExistenceList{ false, false, false, false, false, false, false } , aTextList(7) @@ -84,7 +84,7 @@ bool TitleDialogData::writeDifferenceToModel( { TitleHelper::createTitle( static_cast< TitleHelper::eTitleType >( nN ), aTextList[nN], xChartModel, xContext, - apReferenceSizeProvider.get() ); + apReferenceSizeProvider.has_value() ? &*apReferenceSizeProvider : nullptr ); bChanged = true; } else |