summaryrefslogtreecommitdiff
path: root/sw/source/uibase/ribbar
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-11-24 10:40:18 +0200
committerNoel Grandin <noel@peralex.com>2014-11-25 10:09:53 +0200
commit9409b2eb454118eab93542d4dfb464b723b219e2 (patch)
treeb143ccfb63af30b3e47637e096d03261f2586065 /sw/source/uibase/ribbar
parent88aaa3496161339d504876a2e84dc03e4d6191d9 (diff)
loplugin: cstylecast
Change-Id: I030208a86a60609b0379c00957538677fac15ccf
Diffstat (limited to 'sw/source/uibase/ribbar')
-rw-r--r--sw/source/uibase/ribbar/concustomshape.cxx4
-rw-r--r--sw/source/uibase/ribbar/inputwin.cxx8
-rw-r--r--sw/source/uibase/ribbar/workctrl.cxx6
3 files changed, 9 insertions, 9 deletions
diff --git a/sw/source/uibase/ribbar/concustomshape.cxx b/sw/source/uibase/ribbar/concustomshape.cxx
index 0c21879ed15a..10f85f6240de 100644
--- a/sw/source/uibase/ribbar/concustomshape.cxx
+++ b/sw/source/uibase/ribbar/concustomshape.cxx
@@ -83,7 +83,7 @@ bool ConstCustomShape::MouseButtonDown(const MouseEvent& rMEvt)
{
SetAttributes( pObj );
bool bForceNoFillStyle = false;
- if ( ((SdrObjCustomShape*)pObj)->UseNoFillStyle() )
+ if ( static_cast<SdrObjCustomShape*>(pObj)->UseNoFillStyle() )
bForceNoFillStyle = true;
SfxItemSet aAttr( m_pView->GetPool() );
@@ -169,7 +169,7 @@ void ConstCustomShape::SetAttributes( SdrObject* pObj )
pObj->SetMergedItem( SdrTextVertAdjustItem( SDRTEXTVERTADJUST_CENTER ) );
pObj->SetMergedItem( SdrTextHorzAdjustItem( SDRTEXTHORZADJUST_BLOCK ) );
pObj->SetMergedItem( makeSdrTextAutoGrowHeightItem( false ) );
- ((SdrObjCustomShape*)pObj)->MergeDefaultAttributes( &aCustomShape );
+ static_cast<SdrObjCustomShape*>(pObj)->MergeDefaultAttributes( &aCustomShape );
}
}
diff --git a/sw/source/uibase/ribbar/inputwin.cxx b/sw/source/uibase/ribbar/inputwin.cxx
index c9cd78a4753b..46f5a15a3267 100644
--- a/sw/source/uibase/ribbar/inputwin.cxx
+++ b/sw/source/uibase/ribbar/inputwin.cxx
@@ -260,7 +260,7 @@ void SwInputWindow::ShowWin()
SfxItemSet aSet( pWrtShell->GetAttrPool(), RES_BOXATR_FORMULA, RES_BOXATR_FORMULA );
if( pWrtShell->GetTblBoxFormulaAttrs( aSet ))
- sEdit += ((SwTblBoxFormula&)aSet.Get( RES_BOXATR_FORMULA )).GetFormula();
+ sEdit += static_cast<const SwTblBoxFormula&>(aSet.Get( RES_BOXATR_FORMULA )).GetFormula();
}
}
@@ -506,9 +506,9 @@ void InputEdit::KeyInput(const KeyEvent& rEvent)
{
const vcl::KeyCode aCode = rEvent.GetKeyCode();
if(aCode == KEY_RETURN || aCode == KEY_F2 )
- ((SwInputWindow*)GetParent())->ApplyFormula();
+ static_cast<SwInputWindow*>(GetParent())->ApplyFormula();
else if(aCode == KEY_ESCAPE )
- ((SwInputWindow*)GetParent())->CancelFormula();
+ static_cast<SwInputWindow*>(GetParent())->CancelFormula();
else
Edit::KeyInput(rEvent);
}
@@ -617,7 +617,7 @@ SwInputChild::SwInputChild(vcl::Window* _pParent,
{
pDispatch = pBindings->GetDispatcher();
pWindow = new SwInputWindow( _pParent, pBindings );
- ((SwInputWindow*)pWindow)->ShowWin();
+ static_cast<SwInputWindow*>(pWindow)->ShowWin();
eChildAlignment = SFX_ALIGN_LOWESTTOP;
}
diff --git a/sw/source/uibase/ribbar/workctrl.cxx b/sw/source/uibase/ribbar/workctrl.cxx
index d191cfdcf394..5cf01617207f 100644
--- a/sw/source/uibase/ribbar/workctrl.cxx
+++ b/sw/source/uibase/ribbar/workctrl.cxx
@@ -331,7 +331,7 @@ void SwTbxFieldCtrl::StateChanged( sal_uInt16,
GetToolBox().EnableItem( GetId(), (GetItemState(pState) != SfxItemState::DISABLED) );
if (eState >= SfxItemState::DEFAULT)
{
- GetToolBox().CheckItem( GetId(), ((SfxBoolItem*)pState)->GetValue() );
+ GetToolBox().CheckItem( GetId(), static_cast<const SfxBoolItem*>(pState)->GetValue() );
}
}
@@ -502,8 +502,8 @@ IMPL_LINK(SwScrollNaviPopup, SelectHdl, ToolBox*, pSet)
void SwScrollNaviToolBox::MouseButtonUp( const MouseEvent& rMEvt )
{
ToolBox::MouseButtonUp(rMEvt);
- if ( ((SwScrollNaviPopup*)GetParent())->IsInPopupMode() )
- ((SwScrollNaviPopup*)GetParent())->EndPopupMode( FLOATWIN_POPUPMODEEND_CLOSEALL );
+ if ( static_cast<SwScrollNaviPopup*>(GetParent())->IsInPopupMode() )
+ static_cast<SwScrollNaviPopup*>(GetParent())->EndPopupMode( FLOATWIN_POPUPMODEEND_CLOSEALL );
}
void SwScrollNaviToolBox::RequestHelp( const HelpEvent& rHEvt )