diff options
author | Noel Grandin <noel@peralex.com> | 2014-11-21 14:36:31 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-11-24 14:20:37 +0200 |
commit | 0df9e5e46b0df4a8cc9e7dc39b56b10f922a31e5 (patch) | |
tree | ceccee8d3f94fc31cca8cc7ea0306519df79e0c0 /sw/source/core/text/portxt.cxx | |
parent | d7a7b841913afc64bf1dd19ce55cf1564f0c8275 (diff) |
loplugin: cstylecast
Change-Id: Ia3dc8efc8c8803597cbf226780bdb7e1c9681ee0
Diffstat (limited to 'sw/source/core/text/portxt.cxx')
-rw-r--r-- | sw/source/core/text/portxt.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/core/text/portxt.cxx b/sw/source/core/text/portxt.cxx index 4f17702621f9..6b14932d9c70 100644 --- a/sw/source/core/text/portxt.cxx +++ b/sw/source/core/text/portxt.cxx @@ -389,7 +389,7 @@ bool SwTxtPortion::_Format( SwTxtFormatInfo &rInf ) ( rInf.GetLast()->InFldGrp() && ! rInf.GetLast()->InNumberGrp() && ! rInf.GetLast()->IsErgoSumPortion() && - lcl_HasContent(*((SwFldPortion*)rInf.GetLast()),rInf ) ) ) ) ) + lcl_HasContent(*static_cast<SwFldPortion*>(rInf.GetLast()),rInf ) ) ) ) ) { if ( rInf.X() + aGuess.BreakWidth() <= rInf.Width() ) Width( aGuess.BreakWidth() ); @@ -420,7 +420,7 @@ bool SwTxtPortion::_Format( SwTxtFormatInfo &rInf ) aGuess.BreakPos() != rInf.GetLineStart() && ( !bFirstPor || rInf.GetFly() || rInf.GetLast()->IsFlyPortion() || rInf.IsFirstMulti() ) && - ( !rInf.GetLast()->IsBlankPortion() || ((SwBlankPortion*) + ( !rInf.GetLast()->IsBlankPortion() || static_cast<SwBlankPortion*>( rInf.GetLast())->MayUnderflow( rInf, rInf.GetIdx()-1, true ))) { // case C1 (former BreakUnderflow()) BreakUnderflow( rInf ); @@ -485,8 +485,8 @@ void SwTxtPortion::FormatEOL( SwTxtFormatInfo &rInf ) rInf.X( rInf.X() - nBlankSize ); SetLen( GetLen() - nHoleLen ); SwLinePortion *pHole = new SwHolePortion( *this ); - ( (SwHolePortion *)pHole )->SetBlankWidth( nBlankSize ); - ( (SwHolePortion *)pHole )->SetLen( nHoleLen ); + static_cast<SwHolePortion *>( pHole )->SetBlankWidth( nBlankSize ); + static_cast<SwHolePortion *>( pHole )->SetLen( nHoleLen ); Insert( pHole ); } } |