summaryrefslogtreecommitdiff
path: root/sw/inc/txtftn.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/inc/txtftn.hxx')
-rw-r--r--sw/inc/txtftn.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/inc/txtftn.hxx b/sw/inc/txtftn.hxx
index 1a7a678b0377..3c830e7ff273 100644
--- a/sw/inc/txtftn.hxx
+++ b/sw/inc/txtftn.hxx
@@ -31,7 +31,7 @@ class SwFrame;
class SW_DLLPUBLIC SwTextFootnote : public SwTextAttr
{
- SwNodeIndex * m_pStartNode;
+ std::unique_ptr<SwNodeIndex> m_pStartNode;
SwTextNode * m_pTextNode;
sal_uInt16 m_nSeqNo;
@@ -39,7 +39,7 @@ public:
SwTextFootnote( SwFormatFootnote& rAttr, sal_Int32 nStart );
virtual ~SwTextFootnote() override;
- SwNodeIndex *GetStartNode() const { return m_pStartNode; }
+ SwNodeIndex *GetStartNode() const { return m_pStartNode.get(); }
void SetStartNode( const SwNodeIndex *pNode, bool bDelNodes = true );
void SetNumber( const sal_uInt16 nNumber, const OUString &sNumStr );
void CopyFootnote(SwTextFootnote & rDest, SwTextNode & rDestNode) const;