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/text/itrform2.cxx | |
parent | Improved loplugin:cstylecast to reference types: testtools (diff) | |
download | core-6b95231a2c6f9ae6ec544f9281c4ddc6d665c9dc.tar.gz core-6b95231a2c6f9ae6ec544f9281c4ddc6d665c9dc.zip |
Improved loplugin:cstylecast to reference types: sw
Change-Id: I7206d3325b4bfedb852d559b68dc1678da524b41
Diffstat (limited to 'sw/source/core/text/itrform2.cxx')
-rw-r--r-- | sw/source/core/text/itrform2.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/core/text/itrform2.cxx b/sw/source/core/text/itrform2.cxx index 42245d3a5e7a..4259c4bf8055 100644 --- a/sw/source/core/text/itrform2.cxx +++ b/sw/source/core/text/itrform2.cxx @@ -1401,14 +1401,14 @@ SwLinePortion *SwTextFormatter::NewPortion( SwTextFormatInfo &rInf ) if ( pTextFootnote ) { - SwFormatFootnote& rFootnote = (SwFormatFootnote&)pTextFootnote->GetFootnote(); + SwFormatFootnote& rFootnote = const_cast<SwFormatFootnote&>(pTextFootnote->GetFootnote()); const SwDoc *pDoc = rInf.GetTextFrame()->GetNode()->GetDoc(); const SwEndNoteInfo* pInfo; if( rFootnote.IsEndNote() ) pInfo = &pDoc->GetEndNoteInfo(); else pInfo = &pDoc->GetFootnoteInfo(); - const SwAttrSet& rSet = pInfo->GetAnchorCharFormat((SwDoc&)*pDoc)->GetAttrSet(); + const SwAttrSet& rSet = pInfo->GetAnchorCharFormat(const_cast<SwDoc&>(*pDoc))->GetAttrSet(); const SfxPoolItem* pItem; sal_uInt16 nDir = 0; @@ -1925,9 +1925,9 @@ SwTwips SwTextFormatter::CalcBottomLine() const nRet = nMin - nDist; if( bRepaint ) { - ((SwRepaint&)GetInfo().GetParaPortion() + const_cast<SwRepaint&>(GetInfo().GetParaPortion() ->GetRepaint()).Bottom( nRet-1 ); - ((SwTextFormatInfo&)GetInfo()).SetPaintOfst( 0 ); + const_cast<SwTextFormatInfo&>(GetInfo()).SetPaintOfst( 0 ); } } } |