From bd9dfec21413fdd5df346e8dfecdffdd7bc30fc6 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Fri, 16 Feb 2018 23:43:31 +0100 Subject: sw: DELETEZ to unique_ptr in SwTextFootnote Change-Id: Ibd0a566dffca40da37727421c54b50e1d834ef3d --- sw/inc/txtftn.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sw/inc/txtftn.hxx') 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 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; -- cgit