summaryrefslogtreecommitdiff
path: root/svx/source/stbctrls/pszctrl.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-10-20 11:52:06 +0200
committerNoel Grandin <noel@peralex.com>2014-10-20 13:33:58 +0200
commit3bb30a68e0604b3006f367fdb4c0a797846c23bc (patch)
treec5f5d11d9a0656c92ff7196984ca9238df2e89ee /svx/source/stbctrls/pszctrl.cxx
parentefa7f1a549ebf2580d50f6f0bb96e294a5fce670 (diff)
loplugin: cstylecast
Change-Id: If50022b55a558c4124d71acbbe0ef5eb48801d0b
Diffstat (limited to 'svx/source/stbctrls/pszctrl.cxx')
-rw-r--r--svx/source/stbctrls/pszctrl.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/svx/source/stbctrls/pszctrl.cxx b/svx/source/stbctrls/pszctrl.cxx
index f99dc07411e1..ddb1f0998947 100644
--- a/svx/source/stbctrls/pszctrl.cxx
+++ b/svx/source/stbctrls/pszctrl.cxx
@@ -239,7 +239,7 @@ void SvxPosSizeStatusBarControl::StateChanged( sal_uInt16 nSID, SfxItemState eSt
{
pImp->bHasMenu = true;
if ( pState && pState->ISA(SfxUInt16Item) )
- pImp->nFunction = ((const SfxUInt16Item*)pState)->GetValue();
+ pImp->nFunction = static_cast<const SfxUInt16Item*>(pState)->GetValue();
}
else
pImp->bHasMenu = false;
@@ -263,21 +263,21 @@ void SvxPosSizeStatusBarControl::StateChanged( sal_uInt16 nSID, SfxItemState eSt
else if ( pState->ISA( SfxPointItem ) )
{
// show position
- pImp->aPos = ( (SfxPointItem*)pState )->GetValue();
+ pImp->aPos = static_cast<const SfxPointItem*>(pState)->GetValue();
pImp->bPos = true;
pImp->bTable = false;
}
else if ( pState->ISA( SvxSizeItem ) )
{
// show size
- pImp->aSize = ( (SvxSizeItem*)pState )->GetSize();
+ pImp->aSize = static_cast<const SvxSizeItem*>(pState)->GetSize();
pImp->bSize = true;
pImp->bTable = false;
}
else if ( pState->ISA( SfxStringItem ) )
{
// show string (table cel or different)
- pImp->aStr = ( (SfxStringItem*)pState )->GetValue();
+ pImp->aStr = static_cast<const SfxStringItem*>(pState)->GetValue();
pImp->bTable = true;
pImp->bPos = false;
pImp->bSize = false;