diff options
author | Noel Grandin <noel@peralex.com> | 2014-10-21 14:08:19 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-10-23 12:36:14 +0200 |
commit | d4ca0cc293e060e68237f251173d951eceb7898f (patch) | |
tree | 58e4b7a97b82b1dc4847fdcb063f09d23c0138d8 /cui/source/tabpages/tplnedef.cxx | |
parent | 50a8c89f36b3b8f2d029a0bedc1ed9362807321d (diff) |
loplugin: cstylecast
Change-Id: I0eaeebad6be75a1c0cccdf90955fde1a2909bdba
Diffstat (limited to 'cui/source/tabpages/tplnedef.cxx')
-rw-r--r-- | cui/source/tabpages/tplnedef.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cui/source/tabpages/tplnedef.cxx b/cui/source/tabpages/tplnedef.cxx index 931038b71acd..2c446c149cc0 100644 --- a/cui/source/tabpages/tplnedef.cxx +++ b/cui/source/tabpages/tplnedef.cxx @@ -59,7 +59,7 @@ SvxLineDefTabPage::SvxLineDefTabPage rOutAttrs ( rInAttrs ), bObjSelected ( false ), - pXPool ( (XOutdevItemPool*) rInAttrs.GetPool() ), + pXPool ( static_cast<XOutdevItemPool*>(rInAttrs.GetPool()) ), aXLStyle ( XLINE_DASH ), aXWidth ( XOUT_WIDTH ), aXDash ( OUString(), XDash( XDASH_RECT, 3, 7, 2, 40, 15 ) ), @@ -280,7 +280,7 @@ void SvxLineDefTabPage::Reset( const SfxItemSet* rAttrs ) { if( rAttrs->GetItemState( GetWhich( XATTR_LINESTYLE ) ) != SfxItemState::DONTCARE ) { - XLineStyle eXLS = (XLineStyle) ( ( const XLineStyleItem& ) rAttrs->Get( GetWhich( XATTR_LINESTYLE ) ) ).GetValue(); + XLineStyle eXLS = (XLineStyle) static_cast<const XLineStyleItem&>( rAttrs->Get( GetWhich( XATTR_LINESTYLE ) ) ).GetValue(); switch( eXLS ) { @@ -291,7 +291,7 @@ void SvxLineDefTabPage::Reset( const SfxItemSet* rAttrs ) case XLINE_DASH: { - const XLineDashItem& rDashItem = ( const XLineDashItem& ) rAttrs->Get( XATTR_LINEDASH ); + const XLineDashItem& rDashItem = static_cast<const XLineDashItem&>( rAttrs->Get( XATTR_LINEDASH ) ); aDash = rDashItem.GetDashValue(); m_pLbLineStyles->SetNoSelection(); @@ -755,7 +755,7 @@ IMPL_LINK_NOARG(SvxLineDefTabPage, ClickLoadHdl_Impl) if( pDshLst->Load() ) { pDashList = pDshLst; - ( (SvxLineTabDialog*) GetParentDialog() )->SetNewDashList( pDashList ); + static_cast<SvxLineTabDialog*>( GetParentDialog() )->SetNewDashList( pDashList ); m_pLbLineStyles->Clear(); m_pLbLineStyles->Fill( pDashList ); |