diff options
author | Noel Grandin <noel@peralex.com> | 2014-11-14 16:10:52 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-11-18 08:09:40 +0200 |
commit | dca29d672a7a908972fa2735a44fa51fc75c2e93 (patch) | |
tree | 354a9fc592f07db7963293914ead46ce3308e0e2 /sw/source/core/doc/gctable.cxx | |
parent | cc02d84421182c70f1efbb24d1bda749b1f5e422 (diff) |
loplugin: cstylecast
Change-Id: I939e4af2ca27b34f78d079bb1e209d9b118eed01
Diffstat (limited to 'sw/source/core/doc/gctable.cxx')
-rw-r--r-- | sw/source/core/doc/gctable.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sw/source/core/doc/gctable.cxx b/sw/source/core/doc/gctable.cxx index bac1c50627fe..705670a24a04 100644 --- a/sw/source/core/doc/gctable.cxx +++ b/sw/source/core/doc/gctable.cxx @@ -36,7 +36,7 @@ bool _SwGCBorder_BoxBrd::CheckLeftBorderOfFormat( const SwFrmFmt& rFmt ) const SvxBorderLine* pBrd; const SfxPoolItem* pItem; if( SfxItemState::SET == rFmt.GetItemState( RES_BOX, true, &pItem ) && - 0 != ( pBrd = ((SvxBoxItem*)pItem)->GetLeft() ) ) + 0 != ( pBrd = static_cast<const SvxBoxItem*>(pItem)->GetLeft() ) ) { if( *pBrdLn == *pBrd ) bAnyBorderFnd = true; @@ -105,7 +105,7 @@ static sal_uInt16 lcl_FindEndPosOfBorder( const SwCollectTblLineBoxes& rCollTLB, const SwTableBox& rBox = rCollTLB.GetBox( rStt, &nPos ); if( SfxItemState::SET != rBox.GetFrmFmt()->GetItemState(RES_BOX,true, &pItem ) - || 0 == ( pBrd = GetLineTB( (SvxBoxItem*)pItem, bTop )) + || 0 == ( pBrd = GetLineTB( static_cast<const SvxBoxItem*>(pItem), bTop )) || !( *pBrd == rBrdLn )) break; nLastPos = nPos; @@ -118,7 +118,7 @@ static inline const SvxBorderLine* lcl_GCBorder_GetBorder( const SwTableBox& rBo const SfxPoolItem** ppItem ) { return SfxItemState::SET == rBox.GetFrmFmt()->GetItemState( RES_BOX, true, ppItem ) - ? GetLineTB( (SvxBoxItem*)*ppItem, bTop ) + ? GetLineTB( static_cast<const SvxBoxItem*>(*ppItem), bTop ) : 0; } @@ -136,7 +136,7 @@ static void lcl_GCBorder_DelBorder( const SwCollectTblLineBoxes& rCollTLB, do { if( pLn && *pLn == rLine ) { - SvxBoxItem aBox( *(SvxBoxItem*)pItem ); + SvxBoxItem aBox( *static_cast<const SvxBoxItem*>(pItem) ); if( bTop ) aBox.SetLine( 0, BOX_LINE_TOP ); else @@ -185,14 +185,14 @@ void sw_GC_Line_Border( const SwTableLine* pLine, _SwGCLineBorder* pGCPara ) for( sal_uInt16 i = aBoxes.size(); i; ) if( SfxItemState::SET == (pBox = aBoxes[ --i ])->GetFrmFmt()-> GetItemState( RES_BOX, true, &pItem ) && - 0 != ( pBrd = ((SvxBoxItem*)pItem)->GetRight() ) ) + 0 != ( pBrd = static_cast<const SvxBoxItem*>(pItem)->GetRight() ) ) { aBPara.SetBorder( *pBrd ); const SwTableBox* pNextBox = rBoxes[n+1]; if( lcl_GCBorder_ChkBoxBrd_B( pNextBox, &aBPara ) && aBPara.IsAnyBorderFound() ) { - SvxBoxItem aBox( *(SvxBoxItem*)pItem ); + SvxBoxItem aBox( *static_cast<const SvxBoxItem*>(pItem) ); aBox.SetLine( 0, BOX_LINE_RIGHT ); if( pGCPara->pShareFmts ) pGCPara->pShareFmts->SetAttr( *pBox, aBox ); |