diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-01 09:34:37 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-04 08:44:19 +0200 |
commit | 326295bf10985a19ac913f988980c8761c301967 (patch) | |
tree | 0b02ea6717888077e73c4837aafddd6a10dfc183 /sw/source/core/doc/doccorr.cxx | |
parent | dfaceb70ec2f6feda6a73b8be00a7f168dfe075b (diff) |
new loplugin:redundantpointerops
Change-Id: I8428d86ea9628d69c2b40b36feee3da428a9fe1d
Reviewed-on: https://gerrit.libreoffice.org/41787
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/doc/doccorr.cxx')
-rw-r--r-- | sw/source/core/doc/doccorr.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/doc/doccorr.cxx b/sw/source/core/doc/doccorr.cxx index 2012dfc06faf..2e73dd1d850e 100644 --- a/sw/source/core/doc/doccorr.cxx +++ b/sw/source/core/doc/doccorr.cxx @@ -147,7 +147,7 @@ void PaMCorrAbs( const SwPaM& rRange, dynamic_cast<SwUnoTableCursor *>(pUnoCursor.get()); if( pUnoTableCursor ) { - for(SwPaM& rPaM : (&pUnoTableCursor->GetSelRing())->GetRingContainer()) + for(SwPaM& rPaM : pUnoTableCursor->GetSelRing().GetRingContainer()) { bChange |= lcl_PaMCorrAbs( rPaM, aStart, aEnd, aNewPos ); @@ -289,7 +289,7 @@ void PaMCorrRel( const SwNodeIndex &rOldNode, dynamic_cast<SwUnoTableCursor*>(pUnoCursor.get()); if( pUnoTableCursor ) { - for(SwPaM& rPaM : (&pUnoTableCursor->GetSelRing())->GetRingContainer()) + for(SwPaM& rPaM : pUnoTableCursor->GetSelRing().GetRingContainer()) { lcl_PaMCorrRel1( &rPaM, pOldNode, aNewPos, nCntIdx ); } |