summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-09-01 09:34:37 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-09-04 08:44:19 +0200
commit326295bf10985a19ac913f988980c8761c301967 (patch)
tree0b02ea6717888077e73c4837aafddd6a10dfc183 /sw
parentdfaceb70ec2f6feda6a73b8be00a7f168dfe075b (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')
-rw-r--r--sw/source/core/doc/CntntIdxStore.cxx2
-rw-r--r--sw/source/core/doc/doccorr.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/doc/CntntIdxStore.cxx b/sw/source/core/doc/CntntIdxStore.cxx
index f164af01569f..4c824c2198da 100644
--- a/sw/source/core/doc/CntntIdxStore.cxx
+++ b/sw/source/core/doc/CntntIdxStore.cxx
@@ -402,7 +402,7 @@ void ContentIdxStoreImpl::SaveUnoCursors(SwDoc* pDoc, sal_uLong nNode, sal_Int32
const SwUnoTableCursor* pUnoTableCursor = dynamic_cast<const SwUnoTableCursor*>(pUnoCursor.get());
if( pUnoTableCursor )
{
- for(SwPaM& rPaM : (&(const_cast<SwUnoTableCursor*>(pUnoTableCursor))->GetSelRing())->GetRingContainer())
+ for(SwPaM& rPaM : const_cast<SwUnoTableCursor*>(pUnoTableCursor)->GetSelRing().GetRingContainer())
{
lcl_ChkUnoCrsrPaMBoth(m_aUnoCursorEntries, nNode, nContent, rPaM);
}
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 );
}