summaryrefslogtreecommitdiff
path: root/sw/source/uibase/sidebar
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-12-01 10:18:03 +0200
committerNoel Grandin <noel@peralex.com>2014-12-02 09:32:10 +0200
commitcf16234a23a716fe98adf32dd5b56d48be242c99 (patch)
tree71bde1012375f19303809d233f02c00274854559 /sw/source/uibase/sidebar
parentaeb6c0ed64a76c722158bf91313b42561cd66071 (diff)
loplugin: cstylecast
Change-Id: If31b41296a91c6a6ac990494e88ab7b47240a823
Diffstat (limited to 'sw/source/uibase/sidebar')
-rw-r--r--sw/source/uibase/sidebar/PagePropertyPanel.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/sidebar/PagePropertyPanel.cxx b/sw/source/uibase/sidebar/PagePropertyPanel.cxx
index ebe50a6303de..ed4a66aeb3b1 100644
--- a/sw/source/uibase/sidebar/PagePropertyPanel.cxx
+++ b/sw/source/uibase/sidebar/PagePropertyPanel.cxx
@@ -535,7 +535,7 @@ void PagePropertyPanel::MetricState( SfxItemState eState, const SfxPoolItem* pSt
meFUnit = FUNIT_NONE;
if ( pState && eState >= SfxItemState::DEFAULT )
{
- meFUnit = (FieldUnit)( (const SfxUInt16Item*)pState )->GetValue();
+ meFUnit = (FieldUnit)static_cast<const SfxUInt16Item*>(pState )->GetValue();
}
else
{
@@ -550,7 +550,7 @@ void PagePropertyPanel::MetricState( SfxItemState eState, const SfxPoolItem* pSt
{
const SfxPoolItem* pItem = pModule->GetItem( SID_ATTR_METRIC );
if ( pItem )
- meFUnit = (FieldUnit)( (SfxUInt16Item*)pItem )->GetValue();
+ meFUnit = (FieldUnit)static_cast<const SfxUInt16Item*>(pItem )->GetValue();
}
else
{