diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-08-20 13:48:53 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-08-21 12:10:42 +0200 |
commit | 91b6145090e6e5194493ac7e7dfb3b4096df906f (patch) | |
tree | 7829bb9069708e056fb616115c93efd17088f885 /chart2/source/controller/inc | |
parent | 34b1a8c2c75f32f0c352acb4f1fd9fd3c2ff00cb (diff) |
loplugin:useuniqueptr in TitleDialogData
Change-Id: Idec568c868411056d1c8aa1a93c36008b223ce57
Reviewed-on: https://gerrit.libreoffice.org/59356
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2/source/controller/inc')
-rw-r--r-- | chart2/source/controller/inc/ChartController.hxx | 2 | ||||
-rw-r--r-- | chart2/source/controller/inc/TitleDialogData.hxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/chart2/source/controller/inc/ChartController.hxx b/chart2/source/controller/inc/ChartController.hxx index 2cf1978811db..b6c9db260d15 100644 --- a/chart2/source/controller/inc/ChartController.hxx +++ b/chart2/source/controller/inc/ChartController.hxx @@ -418,7 +418,7 @@ private: rtl::Reference<svx::sidebar::SelectionChangeHandler> mpSelectionChangeHandler; bool impl_isDisposedOrSuspended() const; - ReferenceSizeProvider* impl_createReferenceSizeProvider(); + std::unique_ptr<ReferenceSizeProvider> impl_createReferenceSizeProvider(); void impl_adaptDataSeriesAutoResize(); void impl_createDrawViewController(); diff --git a/chart2/source/controller/inc/TitleDialogData.hxx b/chart2/source/controller/inc/TitleDialogData.hxx index 634ed5b76138..6deeb2050b1d 100644 --- a/chart2/source/controller/inc/TitleDialogData.hxx +++ b/chart2/source/controller/inc/TitleDialogData.hxx @@ -36,7 +36,7 @@ struct TitleDialogData css::uno::Sequence< OUString > aTextList; std::unique_ptr< ReferenceSizeProvider > apReferenceSizeProvider; - TitleDialogData(ReferenceSizeProvider* pReferenzeSizeProvider = nullptr); + TitleDialogData(std::unique_ptr<ReferenceSizeProvider> pReferenzeSizeProvider = nullptr); void readFromModel( const css::uno::Reference< css::frame::XModel >& xChartModel ); /* return true if anything has changed; |