summaryrefslogtreecommitdiff
path: root/sw/source/core/inc/pagefrm.hxx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2018-01-04 15:52:06 +0100
committerMichael Stahl <mstahl@redhat.com>2018-01-04 16:22:33 +0100
commit0af086beaaad8ded4f551ece0086ce990952ee16 (patch)
tree3db93c572a9e0178e881dcb90cb87c495cf5146d /sw/source/core/inc/pagefrm.hxx
parent794e54cd34239006270a00a6e5017acc463063f9 (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.hxx6
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 );