summaryrefslogtreecommitdiff
path: root/sw/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-06-28 13:04:15 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-06-29 08:38:55 +0200
commitb75d084f673d0a7e4845a59b5446a4bfafb37fd6 (patch)
treed536cca8b8ad8ee55a8b3d4bd698e5a9edab6f2c /sw/inc
parentc0241bad4ee36cac66eab4ab1435aa4874f5bddb (diff)
loplugin:useuniqueptr in SwTableNode
Change-Id: I28bca27b6841ba9b263392b2e30f8684a8e2c4e5 Reviewed-on: https://gerrit.libreoffice.org/56622 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc')
-rw-r--r--sw/inc/node.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/inc/node.hxx b/sw/inc/node.hxx
index 9198ec2c73b7..3e50db779aaa 100644
--- a/sw/inc/node.hxx
+++ b/sw/inc/node.hxx
@@ -492,7 +492,7 @@ private:
class SW_DLLPUBLIC SwTableNode : public SwStartNode, public SwModify
{
friend class SwNodes;
- SwTable* m_pTable;
+ std::unique_ptr<SwTable> m_pTable;
protected:
virtual ~SwTableNode() override;
@@ -515,7 +515,7 @@ public:
void MakeFrames( const SwNodeIndex & rIdx );
SwTableNode* MakeCopy( SwDoc*, const SwNodeIndex& ) const;
- void SetNewTable( SwTable* , bool bNewFrames=true );
+ void SetNewTable( std::unique_ptr<SwTable> , bool bNewFrames=true );
// Removes redline objects that relate to this table from the 'Extra Redlines' table
void RemoveRedlines();