diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-10-26 10:58:39 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-10-27 11:05:37 +0200 |
commit | ab60b88390097dd98ad1e765b8dd94d1abaa3c65 (patch) | |
tree | 78609cc8af77e0eca33b6352d5bbaa5fcbb30f73 /sw | |
parent | 11cf64b7303d3c6bd2620d6c711c9845775f2d3d (diff) |
use std::unique_ptr in DocumentRedlineManager
Change-Id: Iba073b3a251827fefaba790e33dfc7c01b0b2154
Reviewed-on: https://gerrit.libreoffice.org/43897
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/doc/DocumentRedlineManager.cxx | 2 | ||||
-rw-r--r-- | sw/source/core/inc/DocumentRedlineManager.hxx | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/sw/source/core/doc/DocumentRedlineManager.cxx b/sw/source/core/doc/DocumentRedlineManager.cxx index 672412edfeba..47482eb2f5bc 100644 --- a/sw/source/core/doc/DocumentRedlineManager.cxx +++ b/sw/source/core/doc/DocumentRedlineManager.cxx @@ -2696,8 +2696,6 @@ void DocumentRedlineManager::checkRedlining(RedlineFlags& _rReadlineMode) DocumentRedlineManager::~DocumentRedlineManager() { - delete mpRedlineTable; mpRedlineTable = nullptr; - delete mpExtraRedlineTable; mpExtraRedlineTable = nullptr; } } diff --git a/sw/source/core/inc/DocumentRedlineManager.hxx b/sw/source/core/inc/DocumentRedlineManager.hxx index afe8d4090271..166c7e56804d 100644 --- a/sw/source/core/inc/DocumentRedlineManager.hxx +++ b/sw/source/core/inc/DocumentRedlineManager.hxx @@ -130,8 +130,8 @@ private: SwDoc& m_rDoc; RedlineFlags meRedlineFlags; //< Current Redline Mode. - SwRedlineTable *mpRedlineTable; //< List of all Ranged Redlines. - SwExtraRedlineTable *mpExtraRedlineTable; //< List of all Extra Redlines. + std::unique_ptr<SwRedlineTable> mpRedlineTable; //< List of all Ranged Redlines. + std::unique_ptr<SwExtraRedlineTable> mpExtraRedlineTable; //< List of all Extra Redlines. std::unique_ptr<OUString> mpAutoFormatRedlnComment; //< Comment for Redlines inserted via AutoFormat. bool mbIsRedlineMove; //< true: Redlines are moved into to / out of the section. bool mbReadlineChecked; //< true: if the query was already shown |