diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-16 16:16:22 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-20 09:43:25 +0100 |
commit | 0f0049d77a0ee6ae936922213c7290d0bc4fee29 (patch) | |
tree | 21ec8c68606453166de7557afa394054907d9c85 /cui/source/tabpages/tpshadow.cxx | |
parent | 21e85d591f344958c3ebee9422ba15dbd931f2cc (diff) |
TypedWhichId for XATTR* constants
Change-Id: Ie9d637d701b77a549de3b00956f9c74ee8bd08c1
Reviewed-on: https://gerrit.libreoffice.org/44830
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cui/source/tabpages/tpshadow.cxx')
-rw-r--r-- | cui/source/tabpages/tpshadow.cxx | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/cui/source/tabpages/tpshadow.cxx b/cui/source/tabpages/tpshadow.cxx index a9b0880f4dde..c77b4375d307 100644 --- a/cui/source/tabpages/tpshadow.cxx +++ b/cui/source/tabpages/tpshadow.cxx @@ -99,27 +99,21 @@ SvxShadowTabPage::SvxShadowTabPage( vcl::Window* pParent, const SfxItemSet& rInA case drawing::FillStyle_SOLID: if( SfxItemState::DONTCARE != m_rOutAttrs.GetItemState( XATTR_FILLCOLOR ) ) { - XFillColorItem aColorItem( static_cast<const XFillColorItem&>( - m_rOutAttrs.Get( XATTR_FILLCOLOR ) ) ); - m_rXFSet.Put( aColorItem ); + m_rXFSet.Put( m_rOutAttrs.Get( XATTR_FILLCOLOR ) ); } break; case drawing::FillStyle_GRADIENT: if( SfxItemState::DONTCARE != m_rOutAttrs.GetItemState( XATTR_FILLGRADIENT ) ) { - XFillGradientItem aGradientItem( static_cast<const XFillGradientItem&>( - m_rOutAttrs.Get( XATTR_FILLGRADIENT ) ) ); - m_rXFSet.Put( aGradientItem ); + m_rXFSet.Put( m_rOutAttrs.Get( XATTR_FILLGRADIENT ) ); } break; case drawing::FillStyle_HATCH: if( SfxItemState::DONTCARE != m_rOutAttrs.GetItemState( XATTR_FILLHATCH ) ) { - XFillHatchItem aHatchItem( static_cast<const XFillHatchItem& >( - m_rOutAttrs.Get( XATTR_FILLHATCH ) ) ); - m_rXFSet.Put( aHatchItem ); + m_rXFSet.Put( m_rOutAttrs.Get( XATTR_FILLHATCH ) ); } break; @@ -127,9 +121,7 @@ SvxShadowTabPage::SvxShadowTabPage( vcl::Window* pParent, const SfxItemSet& rInA { if( SfxItemState::DONTCARE != m_rOutAttrs.GetItemState( XATTR_FILLBITMAP ) ) { - XFillBitmapItem aBitmapItem( static_cast<const XFillBitmapItem& >( - m_rOutAttrs.Get( XATTR_FILLBITMAP ) ) ); - m_rXFSet.Put( aBitmapItem ); + m_rXFSet.Put( m_rOutAttrs.Get( XATTR_FILLBITMAP ) ); } } break; |