diff options
author | Emircan Agac <thesadson@gmail.com> | 2021-08-12 18:44:53 +0300 |
---|---|---|
committer | Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> | 2021-08-14 08:35:36 +0200 |
commit | da76d817400242934fdaebcdb226abf3d6595f56 (patch) | |
tree | c2b2492063f93b4b3a8337462f1fe750ad4e2cf2 /sw/source/filter/html/htmlcss1.cxx | |
parent | c820cb429fc3d3eec9bf6596f0a34995cbd93982 (diff) |
tdf#140226: use StaticWhichCast
Change-Id: I013b6ff371992a31a1ee11f93072eeb49566fe52
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120401
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Diffstat (limited to 'sw/source/filter/html/htmlcss1.cxx')
-rw-r--r-- | sw/source/filter/html/htmlcss1.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/filter/html/htmlcss1.cxx b/sw/source/filter/html/htmlcss1.cxx index 267996f4ea01..110fc35e4cfe 100644 --- a/sw/source/filter/html/htmlcss1.cxx +++ b/sw/source/filter/html/htmlcss1.cxx @@ -390,7 +390,7 @@ void SwCSS1Parser::SetPageDescAttrs( const SvxBrushItem *pBrush, &pItem ) ) { // set a background - aBrushItem.reset(static_cast<SvxBrushItem*>(pItem->Clone())); + aBrushItem.reset(&pItem->Clone()->StaticWhichCast(RES_BACKGROUND)); pItemSet2->ClearItem( RES_BACKGROUND ); bSetBrush = true; } @@ -398,7 +398,7 @@ void SwCSS1Parser::SetPageDescAttrs( const SvxBrushItem *pBrush, if( SfxItemState::SET == pItemSet2->GetItemState( RES_BOX, false, &pItem ) ) { // set a border - aBoxItem.reset(static_cast<SvxBoxItem*>(pItem->Clone())); + aBoxItem.reset(&pItem->Clone()->StaticWhichCast(RES_BOX)); pItemSet2->ClearItem( RES_BOX ); bSetBox = true; } @@ -406,7 +406,7 @@ void SwCSS1Parser::SetPageDescAttrs( const SvxBrushItem *pBrush, if( SfxItemState::SET == pItemSet2->GetItemState( RES_FRAMEDIR, false, &pItem ) ) { // set a frame - aFrameDirItem.reset(static_cast<SvxFrameDirectionItem*>(pItem->Clone())); + aFrameDirItem.reset(&pItem->Clone()->StaticWhichCast(RES_FRAMEDIR)); pItemSet2->ClearItem( RES_FRAMEDIR ); bSetFrameDir = true; } |