diff options
author | Michael Stahl <mstahl@redhat.com> | 2018-01-04 15:52:06 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2018-01-04 16:22:33 +0100 |
commit | 0af086beaaad8ded4f551ece0086ce990952ee16 (patch) | |
tree | 3db93c572a9e0178e881dcb90cb87c495cf5146d /sw/source/core/inc/pagefrm.hxx | |
parent | 794e54cd34239006270a00a6e5017acc463063f9 (diff) |
sw: convert SwPageFrame::m_pSortedObjs to unique_ptr
Change-Id: Id0cac6143c4c9278fc450048cc0b276d72d0c1a1
Diffstat (limited to 'sw/source/core/inc/pagefrm.hxx')
-rw-r--r-- | sw/source/core/inc/pagefrm.hxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/inc/pagefrm.hxx b/sw/source/core/inc/pagefrm.hxx index d49b5275893d..8c7ab3a92fdb 100644 --- a/sw/source/core/inc/pagefrm.hxx +++ b/sw/source/core/inc/pagefrm.hxx @@ -42,7 +42,7 @@ class SwPageFrame: public SwFootnoteBossFrame { friend class SwFrame; - SwSortedObjs *m_pSortedObjs; + std::unique_ptr<SwSortedObjs> m_pSortedObjs; SwPageDesc *m_pDesc; //PageDesc that describes the Page @@ -117,8 +117,8 @@ public: void PrepareHeader(); void PrepareFooter(); - const SwSortedObjs *GetSortedObjs() const { return m_pSortedObjs; } - SwSortedObjs *GetSortedObjs() { return m_pSortedObjs; } + const SwSortedObjs *GetSortedObjs() const { return m_pSortedObjs.get(); } + SwSortedObjs *GetSortedObjs() { return m_pSortedObjs.get(); } void AppendDrawObjToPage( SwAnchoredObject& _rNewObj ); void RemoveDrawObjFromPage( SwAnchoredObject& _rToRemoveObj ); |