summaryrefslogtreecommitdiff
path: root/sw/source/core/doc/docnum.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-06-03 21:08:34 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-06-05 21:18:01 +0200
commit6b95231a2c6f9ae6ec544f9281c4ddc6d665c9dc (patch)
tree0d04661abb20dde1eab177d587e704b15e3051cd /sw/source/core/doc/docnum.cxx
parentb1fba1afa1c1a5cf9074d2e9dd3e613ef0b318de (diff)
Improved loplugin:cstylecast to reference types: sw
Change-Id: I7206d3325b4bfedb852d559b68dc1678da524b41
Diffstat (limited to 'sw/source/core/doc/docnum.cxx')
-rw-r--r--sw/source/core/doc/docnum.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/doc/docnum.cxx b/sw/source/core/doc/docnum.cxx
index afaf60bfa94d..dd833bb1af85 100644
--- a/sw/source/core/doc/docnum.cxx
+++ b/sw/source/core/doc/docnum.cxx
@@ -1897,7 +1897,7 @@ bool SwDoc::MoveParagraph( const SwPaM& rPam, long nOffset, bool bIsOutlMv )
SwPaM aPam( pStt->nNode, aMvRg.aEnd );
- SwPaM& rOrigPam = (SwPaM&)rPam;
+ SwPaM& rOrigPam = const_cast<SwPaM&>(rPam);
rOrigPam.DeleteMark();
rOrigPam.GetPoint()->nNode = aIdx.GetIndex() - 1;