From 641cb17f5e11cafad0413e2a673fdad2b8c42903 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 21 Jun 2018 09:11:42 +0200 Subject: loplugin:useuniqueptr in SwAccessibleMap Change-Id: I8dd7b9698a98a1a3dc69605f395b0a82b75a5d82 Reviewed-on: https://gerrit.libreoffice.org/56319 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sw/inc/accmap.hxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'sw/inc') diff --git a/sw/inc/accmap.hxx b/sw/inc/accmap.hxx index c78bea3e0e51..330c4436d613 100644 --- a/sw/inc/accmap.hxx +++ b/sw/inc/accmap.hxx @@ -91,14 +91,14 @@ class SwAccessibleMap : public ::accessibility::IAccessibleViewForwarder, { mutable ::osl::Mutex maMutex; ::osl::Mutex maEventMutex; - SwAccessibleContextMap_Impl *mpFrameMap; - SwAccessibleShapeMap_Impl *mpShapeMap; + std::unique_ptr mpFrameMap; + std::unique_ptr mpShapeMap; SwShapeList_Impl mvShapes; - SwAccessibleEventList_Impl *mpEvents; - SwAccessibleEventMap_Impl *mpEventMap; + std::unique_ptr mpEvents; + std::unique_ptr mpEventMap; // #i27301 data structure to keep information about // accessible paragraph, which have a selection. - SwAccessibleSelectedParas_Impl* mpSelectedParas; + std::unique_ptr mpSelectedParas; SwViewShell *mpVSh; /// for page preview: store preview data, VisArea, and mapping of /// preview-to-display coordinates @@ -135,7 +135,7 @@ class SwAccessibleMap : public ::accessibility::IAccessibleViewForwarder, Important note: method has to used inside a mutual exclusive section */ - SwAccessibleSelectedParas_Impl* BuildSelectedParas(); + std::unique_ptr BuildSelectedParas(); public: -- cgit