diff options
author | Noel Grandin <noel@peralex.com> | 2014-11-26 10:27:15 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-11-26 11:46:38 +0200 |
commit | 5be1635d45e28e047af0cde4e387b07a3131cc9d (patch) | |
tree | d2bd0d9f133c10e563655081174d1481a68e09b3 /sw/source/filter/html/htmltab.cxx | |
parent | b61ca31e53f0a56667a5e00e966681be29ea7bf7 (diff) |
loplugin: cstylecast
Change-Id: Idce7220056f7bc339a5060fd0bd6fbbbdde4f6ff
Diffstat (limited to 'sw/source/filter/html/htmltab.cxx')
-rw-r--r-- | sw/source/filter/html/htmltab.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/filter/html/htmltab.cxx b/sw/source/filter/html/htmltab.cxx index bd4153112771..093c70817156 100644 --- a/sw/source/filter/html/htmltab.cxx +++ b/sw/source/filter/html/htmltab.cxx @@ -1508,7 +1508,7 @@ void HTMLTable::FixFrameFmt( SwTableBox *pBox, SfxItemState::SET==pCNd->GetpSwAttrSet()->GetItemState( RES_PARATR_ADJUST, false, &pItem ) ) { - eAdjust = ((const SvxAdjustItem *)pItem) + eAdjust = static_cast<const SvxAdjustItem *>(pItem) ->GetAdjust(); } } @@ -2961,7 +2961,7 @@ SvxBrushItem* SwHTMLParser::CreateBrushItem( const Color *pColor, if( SfxItemState::SET == aItemSet.GetItemState( RES_BACKGROUND, false, &pItem ) ) { - pBrushItem = new SvxBrushItem( *((const SvxBrushItem *)pItem) ); + pBrushItem = new SvxBrushItem( *static_cast<const SvxBrushItem *>(pItem) ); } } @@ -3504,7 +3504,7 @@ void SwHTMLParser::BuildTableCell( HTMLTable *pCurTable, bool bReadOptions, RES_PARATR_SPLIT, false, &pItem ) ) { aItemSet.Put( - SwFmtLayoutSplit( ((const SvxFmtSplitItem *)pItem) + SwFmtLayoutSplit( static_cast<const SvxFmtSplitItem *>(pItem) ->GetValue() ) ); aItemSet.ClearItem( RES_PARATR_SPLIT ); } @@ -3703,7 +3703,7 @@ void SwHTMLParser::BuildTableCell( HTMLTable *pCurTable, bool bReadOptions, if( nSpace ) aFrmSet.Put( SvxULSpaceItem(nSpace,nSpace, RES_UL_SPACE) ); - RndStdIds eAnchorId = ((const SwFmtAnchor&)aFrmSet. + RndStdIds eAnchorId = static_cast<const SwFmtAnchor&>(aFrmSet. Get( RES_ANCHOR )). GetAnchorId(); SwFrmFmt *pFrmFmt = pDoc->MakeFlySection( @@ -3924,7 +3924,7 @@ void SwHTMLParser::BuildTableCell( HTMLTable *pCurTable, bool bReadOptions, // in der Zelle kann sich ein Bereich befinden! eTabAdjust = aAttrTab.pAdjust - ? ((const SvxAdjustItem&)aAttrTab.pAdjust->GetItem()). + ? static_cast<const SvxAdjustItem&>(aAttrTab.pAdjust->GetItem()). GetAdjust() : SVX_ADJUST_END; } |