From c77429bc28e3baf2f20c5e3fa313abad943f2335 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Tue, 13 Feb 2018 17:30:47 +0100 Subject: sw: replace DELETEZ with unique_ptr in SwUndoSaveSection Change-Id: Ic57736a6d1349574f779afc26b8785caf575cf06 Reviewed-on: https://gerrit.libreoffice.org/49674 Tested-by: Jenkins Reviewed-by: Michael Stahl --- sw/inc/undobj.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sw/inc/undobj.hxx') 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 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: -- cgit