summaryrefslogtreecommitdiff
path: root/sw/inc/undobj.hxx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2018-02-13 17:30:47 +0100
committerMichael Stahl <mstahl@redhat.com>2018-02-14 10:12:54 +0100
commitc77429bc28e3baf2f20c5e3fa313abad943f2335 (patch)
tree3b88ec3060201b31708693bf8a0f85dc1900923e /sw/inc/undobj.hxx
parentf311dc973e70ed38767a857cd201ee4a73d45830 (diff)
sw: replace DELETEZ with unique_ptr in SwUndoSaveSection
Change-Id: Ic57736a6d1349574f779afc26b8785caf575cf06 Reviewed-on: https://gerrit.libreoffice.org/49674 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'sw/inc/undobj.hxx')
-rw-r--r--sw/inc/undobj.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/inc/undobj.hxx b/sw/inc/undobj.hxx
index f71f8873e1e1..48a576dca537 100644
--- a/sw/inc/undobj.hxx
+++ b/sw/inc/undobj.hxx
@@ -185,13 +185,13 @@ public:
// Save a complete section in nodes-array.
class SwUndoSaveSection : private SwUndoSaveContent
{
- SwNodeIndex *pMvStt;
+ std::unique_ptr<SwNodeIndex> m_pMovedStart;
SwRedlineSaveDatas* pRedlSaveData;
sal_uLong nMvLen; // Index into UndoNodes-Array.
sal_uLong nStartPos;
protected:
- SwNodeIndex* GetMvSttIdx() const { return pMvStt; }
+ SwNodeIndex* GetMvSttIdx() const { return m_pMovedStart.get(); }
sal_uLong GetMvNodeCnt() const { return nMvLen; }
public: