Kaydet (Commit) ab60b883 authored tarafından Noel Grandin's avatar Noel Grandin

use std::unique_ptr in DocumentRedlineManager

Change-Id: Iba073b3a251827fefaba790e33dfc7c01b0b2154
Reviewed-on: https://gerrit.libreoffice.org/43897Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 11cf64b7
...@@ -2696,8 +2696,6 @@ void DocumentRedlineManager::checkRedlining(RedlineFlags& _rReadlineMode) ...@@ -2696,8 +2696,6 @@ void DocumentRedlineManager::checkRedlining(RedlineFlags& _rReadlineMode)
DocumentRedlineManager::~DocumentRedlineManager() DocumentRedlineManager::~DocumentRedlineManager()
{ {
delete mpRedlineTable; mpRedlineTable = nullptr;
delete mpExtraRedlineTable; mpExtraRedlineTable = nullptr;
} }
} }
......
...@@ -130,8 +130,8 @@ private: ...@@ -130,8 +130,8 @@ private:
SwDoc& m_rDoc; SwDoc& m_rDoc;
RedlineFlags meRedlineFlags; //< Current Redline Mode. RedlineFlags meRedlineFlags; //< Current Redline Mode.
SwRedlineTable *mpRedlineTable; //< List of all Ranged Redlines. std::unique_ptr<SwRedlineTable> mpRedlineTable; //< List of all Ranged Redlines.
SwExtraRedlineTable *mpExtraRedlineTable; //< List of all Extra Redlines. std::unique_ptr<SwExtraRedlineTable> mpExtraRedlineTable; //< List of all Extra Redlines.
std::unique_ptr<OUString> mpAutoFormatRedlnComment; //< Comment for Redlines inserted via AutoFormat. std::unique_ptr<OUString> mpAutoFormatRedlnComment; //< Comment for Redlines inserted via AutoFormat.
bool mbIsRedlineMove; //< true: Redlines are moved into to / out of the section. bool mbIsRedlineMove; //< true: Redlines are moved into to / out of the section.
bool mbReadlineChecked; //< true: if the query was already shown bool mbReadlineChecked; //< true: if the query was already shown
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment