diff options
author | Noel Grandin <noel@peralex.com> | 2014-11-24 10:40:18 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-11-25 10:09:53 +0200 |
commit | 9409b2eb454118eab93542d4dfb464b723b219e2 (patch) | |
tree | b143ccfb63af30b3e47637e096d03261f2586065 /sw/source/uibase/uiview/viewcoll.cxx | |
parent | 88aaa3496161339d504876a2e84dc03e4d6191d9 (diff) |
loplugin: cstylecast
Change-Id: I030208a86a60609b0379c00957538677fac15ccf
Diffstat (limited to 'sw/source/uibase/uiview/viewcoll.cxx')
-rw-r--r-- | sw/source/uibase/uiview/viewcoll.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/uiview/viewcoll.cxx b/sw/source/uibase/uiview/viewcoll.cxx index 2a4c521e214c..8f379b56ece3 100644 --- a/sw/source/uibase/uiview/viewcoll.cxx +++ b/sw/source/uibase/uiview/viewcoll.cxx @@ -49,11 +49,11 @@ void SwView::ExecColl(SfxRequest &rReq) if (pArgs && SfxItemState::SET == pArgs->GetItemState( nWhich , true, &pItem )) { - if( ((SfxStringItem*)pItem)->GetValue() != + if( static_cast<const SfxStringItem*>(pItem)->GetValue() != GetWrtShell().GetCurPageStyle(false) ) { SfxStringItem aName(SID_STYLE_APPLY, - ((SfxStringItem*)pItem)->GetValue()); + static_cast<const SfxStringItem*>(pItem)->GetValue()); SfxUInt16Item aFamItem( SID_STYLE_FAMILY, SFX_STYLE_FAMILY_PAGE); SwPtrItem aShell(FN_PARAM_WRTSHELL, GetWrtShellPtr()); |