diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-06-03 21:08:34 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-06-05 21:18:01 +0200 |
commit | 6b95231a2c6f9ae6ec544f9281c4ddc6d665c9dc (patch) | |
tree | 0d04661abb20dde1eab177d587e704b15e3051cd /sw/source/core/docnode/ndcopy.cxx | |
parent | b1fba1afa1c1a5cf9074d2e9dd3e613ef0b318de (diff) |
Improved loplugin:cstylecast to reference types: sw
Change-Id: I7206d3325b4bfedb852d559b68dc1678da524b41
Diffstat (limited to 'sw/source/core/docnode/ndcopy.cxx')
-rw-r--r-- | sw/source/core/docnode/ndcopy.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/docnode/ndcopy.cxx b/sw/source/core/docnode/ndcopy.cxx index 86837982e842..737c8cd9abaa 100644 --- a/sw/source/core/docnode/ndcopy.cxx +++ b/sw/source/core/docnode/ndcopy.cxx @@ -235,7 +235,7 @@ static void lcl_CopyTableLine( const SwTableLine* pLine, CopyTable* pCT ) SwTableNode* SwTableNode::MakeCopy( SwDoc* pDoc, const SwNodeIndex& rIdx ) const { // In which array are we? Nodes? UndoNodes? - SwNodes& rNds = (SwNodes&)GetNodes(); + SwNodes& rNds = const_cast<SwNodes&>(GetNodes()); { if( rIdx < pDoc->GetNodes().GetEndOfInserts().GetIndex() && @@ -262,7 +262,7 @@ SwTableNode* SwTableNode::MakeCopy( SwDoc* pDoc, const SwNodeIndex& rIdx ) const SwEndNode* pEndNd = new SwEndNode( rIdx, *pTableNd ); SwNodeIndex aInsPos( *pEndNd ); - SwTable& rTable = (SwTable&)pTableNd->GetTable(); + SwTable& rTable = pTableNd->GetTable(); rTable.RegisterToFormat( *pTableFormat ); rTable.SetRowsToRepeat( GetTable().GetRowsToRepeat() ); |