diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-15 09:02:22 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-15 09:02:22 +0100 |
commit | a5eddfbf45277eea21dd2271b36e9668313eadf3 (patch) | |
tree | 21ed6f32d767656ad1c577fd7cc948f5ca22f0f3 /sw/source/uibase/shells/textsh.cxx | |
parent | 87e3d60776db4e2ff1ba0040b04a0fa348a46ffa (diff) |
More loplugin:cstylecast: sw
Change-Id: I75f75b53e58221a3bd0a6eb837483e7ebae3a02b
Diffstat (limited to 'sw/source/uibase/shells/textsh.cxx')
-rw-r--r-- | sw/source/uibase/shells/textsh.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/uibase/shells/textsh.cxx b/sw/source/uibase/shells/textsh.cxx index 5f12d98a3a5d..58fcb9b33d52 100644 --- a/sw/source/uibase/shells/textsh.cxx +++ b/sw/source/uibase/shells/textsh.cxx @@ -267,8 +267,8 @@ void SwTextShell::ExecInsert(SfxRequest &rReq) try { ScrollingMode eScroll = ScrollingMode::Auto; - if( pScrollingItem && pScrollingItem->GetValue() <= (int)ScrollingMode::Auto ) - eScroll = (ScrollingMode) pScrollingItem->GetValue(); + if( pScrollingItem && pScrollingItem->GetValue() <= int(ScrollingMode::Auto) ) + eScroll = static_cast<ScrollingMode>(pScrollingItem->GetValue()); Size aMargin; if ( pMarginItem ) @@ -438,7 +438,7 @@ void SwTextShell::ExecInsert(SfxRequest &rReq) Point aPos = aMgr.GetPos(); RndStdIds eAnchor = RndStdIds::FLY_AT_PARA; if(pArgs->GetItemState(nSlot, false, &pItem) == SfxItemState::SET) - eAnchor = (RndStdIds)static_cast<const SfxUInt16Item *>(pItem)->GetValue(); + eAnchor = static_cast<RndStdIds>(static_cast<const SfxUInt16Item *>(pItem)->GetValue()); if(pArgs->GetItemState(FN_PARAM_1, false, &pItem) == SfxItemState::SET) aPos = static_cast<const SfxPointItem *>(pItem)->GetValue(); if(pArgs->GetItemState(FN_PARAM_2, false, &pItem) == SfxItemState::SET) @@ -498,7 +498,7 @@ void SwTextShell::ExecInsert(SfxRequest &rReq) if ( xRecorder.is() ) { //FN_INSERT_FRAME - sal_uInt16 nAnchor = (sal_uInt16)aMgr.GetAnchor(); + sal_uInt16 nAnchor = static_cast<sal_uInt16>(aMgr.GetAnchor()); rReq.AppendItem(SfxUInt16Item(nSlot, nAnchor)); rReq.AppendItem(SfxPointItem(FN_PARAM_1, rShell.GetObjAbsPos())); rReq.AppendItem(SvxSizeItem(FN_PARAM_2, rShell.GetObjSize())); @@ -676,7 +676,7 @@ void SwTextShell::StateInsert( SfxItemSet &rSet ) aHLinkItem.SetName(comphelper::string::stripEnd(sReturn, ' ')); } - aHLinkItem.SetInsertMode((SvxLinkInsertMode)(aHLinkItem.GetInsertMode() | + aHLinkItem.SetInsertMode(static_cast<SvxLinkInsertMode>(aHLinkItem.GetInsertMode() | (bHtmlModeOn ? HLINK_HTMLMODE : 0))); aHLinkItem.SetMacroEvents ( HyperDialogEvent::MouseOverObject| HyperDialogEvent::MouseClickObject | HyperDialogEvent::MouseOutObject ); |