diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-06-21 09:11:42 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-06-25 09:11:47 +0200 |
commit | 641cb17f5e11cafad0413e2a673fdad2b8c42903 (patch) | |
tree | 2f217d57cf428eae3dc6982edc550a72df018b5a /sw/inc | |
parent | 087213c6a27de31d36d9ccb72a514048a0bb7724 (diff) |
loplugin:useuniqueptr in SwAccessibleMap
Change-Id: I8dd7b9698a98a1a3dc69605f395b0a82b75a5d82
Reviewed-on: https://gerrit.libreoffice.org/56319
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/accmap.hxx | 12 |
1 files changed, 6 insertions, 6 deletions
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<SwAccessibleContextMap_Impl> mpFrameMap; + std::unique_ptr<SwAccessibleShapeMap_Impl> mpShapeMap; SwShapeList_Impl mvShapes; - SwAccessibleEventList_Impl *mpEvents; - SwAccessibleEventMap_Impl *mpEventMap; + std::unique_ptr<SwAccessibleEventList_Impl> mpEvents; + std::unique_ptr<SwAccessibleEventMap_Impl> mpEventMap; // #i27301 data structure to keep information about // accessible paragraph, which have a selection. - SwAccessibleSelectedParas_Impl* mpSelectedParas; + std::unique_ptr<SwAccessibleSelectedParas_Impl> 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<SwAccessibleSelectedParas_Impl> BuildSelectedParas(); public: |