diff options
author | Noel Grandin <noel@peralex.com> | 2014-11-24 10:40:08 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-11-25 10:09:52 +0200 |
commit | 88aaa3496161339d504876a2e84dc03e4d6191d9 (patch) | |
tree | 5ffc860b837f28737c85f182af1360d111fd3693 /sw/source/uibase/config | |
parent | 1f1c7a4b0d582dffa920c7a51a55ea32c4d203fe (diff) |
loplugin: cstylecast
Change-Id: I0607afad59068e3d94494f971990fb45c2b79443
Diffstat (limited to 'sw/source/uibase/config')
-rw-r--r-- | sw/source/uibase/config/cfgitems.cxx | 4 | ||||
-rw-r--r-- | sw/source/uibase/config/uinums.cxx | 4 | ||||
-rw-r--r-- | sw/source/uibase/config/usrpref.cxx | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/uibase/config/cfgitems.cxx b/sw/source/uibase/config/cfgitems.cxx index 2f2138b9b95f..7bad6ea65e95 100644 --- a/sw/source/uibase/config/cfgitems.cxx +++ b/sw/source/uibase/config/cfgitems.cxx @@ -288,8 +288,8 @@ SfxPoolItem* SwShadowCursorItem::Clone( SfxItemPool* ) const bool SwShadowCursorItem::operator==( const SfxPoolItem& rCmp ) const { - return IsOn() == ((SwShadowCursorItem&)rCmp).IsOn() && - GetMode() == ((SwShadowCursorItem&)rCmp).GetMode(); + return IsOn() == static_cast<const SwShadowCursorItem&>(rCmp).IsOn() && + GetMode() == static_cast<const SwShadowCursorItem&>(rCmp).GetMode(); } void SwShadowCursorItem::operator=( const SwShadowCursorItem& rCpy ) diff --git a/sw/source/uibase/config/uinums.cxx b/sw/source/uibase/config/uinums.cxx index d48b6cbb689e..5cd64bf7578c 100644 --- a/sw/source/uibase/config/uinums.cxx +++ b/sw/source/uibase/config/uinums.cxx @@ -264,10 +264,10 @@ void SwNumRulesWithName::_SwNumFmtGlobal::ChgNumFmt( SwWrtShell& rSh, pFmt->SetFmtAttr( aItems[ --n ] ); } } - ((SwNumFmt&)aFmt).SetCharFmt( pFmt ); + const_cast<SwNumFmt&>(aFmt).SetCharFmt( pFmt ); rNew = aFmt; if( pFmt ) - ((SwNumFmt&)aFmt).SetCharFmt( 0 ); + const_cast<SwNumFmt&>(aFmt).SetCharFmt( 0 ); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/uibase/config/usrpref.cxx b/sw/source/uibase/config/usrpref.cxx index 88aa1f3df64a..03a7ebd9cae2 100644 --- a/sw/source/uibase/config/usrpref.cxx +++ b/sw/source/uibase/config/usrpref.cxx @@ -39,7 +39,7 @@ using namespace ::com::sun::star::uno; void SwMasterUsrPref::SetUsrPref(const SwViewOption &rCopy) { - *((SwViewOption*)this) = rCopy; + *static_cast<SwViewOption*>(this) = rCopy; } SwMasterUsrPref::SwMasterUsrPref(bool bWeb) : |