summaryrefslogtreecommitdiff
path: root/sw/inc/txtftn.hxx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2018-02-16 23:43:31 +0100
committerMichael Stahl <mstahl@redhat.com>2018-02-20 12:57:12 +0100
commitbd9dfec21413fdd5df346e8dfecdffdd7bc30fc6 (patch)
tree3b3cb0827c6b687f8f612ea363f1dcd489a21a98 /sw/inc/txtftn.hxx
parent7ca8a6c8b17ffb4727af2df295b82d33227bdcde (diff)
sw: DELETEZ to unique_ptr in SwTextFootnote
Change-Id: Ibd0a566dffca40da37727421c54b50e1d834ef3d
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;