summaryrefslogtreecommitdiff
path: root/svx/source/stbctrls
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
parentefa7f1a549ebf2580d50f6f0bb96e294a5fce670 (diff)
loplugin: cstylecast
Change-Id: If50022b55a558c4124d71acbbe0ef5eb48801d0b
Diffstat (limited to 'svx/source/stbctrls')
-rw-r--r--svx/source/stbctrls/insctrl.cxx2
-rw-r--r--svx/source/stbctrls/modctrl.cxx2
-rw-r--r--svx/source/stbctrls/pszctrl.cxx8
-rw-r--r--svx/source/stbctrls/selctrl.cxx2
-rw-r--r--svx/source/stbctrls/xmlsecctrl.cxx2
-rw-r--r--svx/source/stbctrls/zoomctrl.cxx4
6 files changed, 10 insertions, 10 deletions
diff --git a/svx/source/stbctrls/insctrl.cxx b/svx/source/stbctrls/insctrl.cxx
index 32f328e12792..4d477ec969b3 100644
--- a/svx/source/stbctrls/insctrl.cxx
+++ b/svx/source/stbctrls/insctrl.cxx
@@ -54,7 +54,7 @@ void SvxInsertStatusBarControl::StateChanged( sal_uInt16 , SfxItemState eState,
else
{
DBG_ASSERT( pState->ISA( SfxBoolItem ), "invalid item type" );
- SfxBoolItem* pItem = (SfxBoolItem*)pState;
+ const SfxBoolItem* pItem = static_cast<const SfxBoolItem*>(pState);
bInsert = pItem->GetValue();
if ( bInsert )
diff --git a/svx/source/stbctrls/modctrl.cxx b/svx/source/stbctrls/modctrl.cxx
index 8ee08e46e9d6..84da501f1a79 100644
--- a/svx/source/stbctrls/modctrl.cxx
+++ b/svx/source/stbctrls/modctrl.cxx
@@ -94,7 +94,7 @@ void SvxModifyControl::StateChanged( sal_uInt16, SfxItemState eState,
return;
DBG_ASSERT( pState->ISA( SfxBoolItem ), "invalid item type" );
- SfxBoolItem* pItem = (SfxBoolItem*)pState;
+ const SfxBoolItem* pItem = static_cast<const SfxBoolItem*>(pState);
mpImpl->maTimer.Stop();
bool modified = pItem->GetValue();
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;
diff --git a/svx/source/stbctrls/selctrl.cxx b/svx/source/stbctrls/selctrl.cxx
index 878153efae97..14715a27451c 100644
--- a/svx/source/stbctrls/selctrl.cxx
+++ b/svx/source/stbctrls/selctrl.cxx
@@ -96,7 +96,7 @@ void SvxSelectionModeControl::StateChanged( sal_uInt16, SfxItemState eState,
if ( SfxItemState::DEFAULT == eState )
{
DBG_ASSERT( pState->ISA( SfxUInt16Item ), "invalid item type" );
- SfxUInt16Item* pItem = (SfxUInt16Item*)pState;
+ const SfxUInt16Item* pItem = static_cast<const SfxUInt16Item*>(pState);
mnState = pItem->GetValue();
SelectionTypePopup aPop( mnState );
diff --git a/svx/source/stbctrls/xmlsecctrl.cxx b/svx/source/stbctrls/xmlsecctrl.cxx
index cb6e953f52cb..4a83066f7f06 100644
--- a/svx/source/stbctrls/xmlsecctrl.cxx
+++ b/svx/source/stbctrls/xmlsecctrl.cxx
@@ -91,7 +91,7 @@ void XmlSecStatusBarControl::StateChanged( sal_uInt16, SfxItemState eState, cons
}
else if( pState->ISA( SfxUInt16Item ) )
{
- mpImpl->mnState = ( ( SfxUInt16Item* ) pState )->GetValue();
+ mpImpl->mnState = static_cast<const SfxUInt16Item*>(pState)->GetValue();
}
else
{
diff --git a/svx/source/stbctrls/zoomctrl.cxx b/svx/source/stbctrls/zoomctrl.cxx
index e333eadce0e7..01a69242eb81 100644
--- a/svx/source/stbctrls/zoomctrl.cxx
+++ b/svx/source/stbctrls/zoomctrl.cxx
@@ -115,7 +115,7 @@ void SvxZoomStatusBarControl::StateChanged( sal_uInt16, SfxItemState eState,
}
else if ( pState->ISA( SfxUInt16Item) )
{
- const SfxUInt16Item* pItem = (const SfxUInt16Item*)pState;
+ const SfxUInt16Item* pItem = static_cast<const SfxUInt16Item*>(pState);
nZoom = pItem->GetValue();
OUString aStr(unicode::formatPercent(nZoom, Application::GetSettings().GetUILanguageTag()));
@@ -123,7 +123,7 @@ void SvxZoomStatusBarControl::StateChanged( sal_uInt16, SfxItemState eState,
if ( pState->ISA(SvxZoomItem) )
{
- nValueSet = ((const SvxZoomItem*)pState)->GetValueSet();
+ nValueSet = static_cast<const SvxZoomItem*>(pState)->GetValueSet();
}
else
{