From 4b44ab2fdf0d71428bdec3ca4090e7968851b24d Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 28 Feb 2018 16:00:56 +0200 Subject: loplugin:useuniqueptr in AxisItemConverter Change-Id: Idbe3a52a62da43e86e9695a3f1519d611e63011a Reviewed-on: https://gerrit.libreoffice.org/50698 Tested-by: Jenkins Reviewed-by: Noel Grandin --- chart2/source/controller/inc/AxisItemConverter.hxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'chart2/source/controller/inc') diff --git a/chart2/source/controller/inc/AxisItemConverter.hxx b/chart2/source/controller/inc/AxisItemConverter.hxx index ad742691ada5..3a82e54124af 100644 --- a/chart2/source/controller/inc/AxisItemConverter.hxx +++ b/chart2/source/controller/inc/AxisItemConverter.hxx @@ -56,15 +56,15 @@ protected: virtual bool ApplySpecialItem( sal_uInt16 nWhichId, const SfxItemSet & rItemSet ) override; private: - std::vector< ItemConverter * > m_aConverters; + std::vector< std::unique_ptr > m_aConverters; css::uno::Reference< css::chart2::XAxis > m_xAxis; css::uno::Reference< css::chart2::XChartDocument > m_xChartDoc; - ExplicitScaleData* m_pExplicitScale; - ExplicitIncrementData* m_pExplicitIncrement; + std::unique_ptr m_pExplicitScale; + std::unique_ptr m_pExplicitIncrement; }; }} -- cgit