summaryrefslogtreecommitdiff
path: root/sw/source/ui/chrdlg/numpara.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-12-01 10:16:37 +0200
committerNoel Grandin <noel@peralex.com>2014-12-02 09:32:09 +0200
commit9a0f88cf27243ae8fc655aa798ed04b8f27e01ed (patch)
tree0590eb86f7880315dcb1fe059b79d147e4f7afd9 /sw/source/ui/chrdlg/numpara.cxx
parent5504035ac07442cc2b77b53f953fcd7d8a4d8648 (diff)
loplugin: cstylecast
Change-Id: I0bba962b4110cb988a6beda71cfc347c4d31d279
Diffstat (limited to 'sw/source/ui/chrdlg/numpara.cxx')
-rw-r--r--sw/source/ui/chrdlg/numpara.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sw/source/ui/chrdlg/numpara.cxx b/sw/source/ui/chrdlg/numpara.cxx
index 5fbe842596d0..a13ca013826f 100644
--- a/sw/source/ui/chrdlg/numpara.cxx
+++ b/sw/source/ui/chrdlg/numpara.cxx
@@ -106,10 +106,10 @@ bool SwParagraphNumTabPage::FillItemSet( SfxItemSet* rSet )
if( m_pOutlineLvLB->IsValueChangedFromSaved())
{
const sal_uInt16 aOutlineLv = m_pOutlineLvLB->GetSelectEntryPos();
- const SfxUInt16Item* pOldOutlineLv = (const SfxUInt16Item*)GetOldItem( *rSet, SID_ATTR_PARA_OUTLINE_LEVEL);
+ const SfxUInt16Item* pOldOutlineLv = static_cast<const SfxUInt16Item*>(GetOldItem( *rSet, SID_ATTR_PARA_OUTLINE_LEVEL));
if (pOldOutlineLv)
{
- SfxUInt16Item* pOutlineLv = (SfxUInt16Item*)pOldOutlineLv->Clone();
+ SfxUInt16Item* pOutlineLv = static_cast<SfxUInt16Item*>(pOldOutlineLv->Clone());
pOutlineLv->SetValue( aOutlineLv );
rSet->Put(*pOutlineLv);
delete pOutlineLv;
@@ -122,8 +122,8 @@ bool SwParagraphNumTabPage::FillItemSet( SfxItemSet* rSet )
OUString aStyle;
if(m_pNumberStyleLB->GetSelectEntryPos())
aStyle = m_pNumberStyleLB->GetSelectEntry();
- const SfxStringItem* pOldRule = (const SfxStringItem*)GetOldItem( *rSet, SID_ATTR_PARA_NUMRULE);
- SfxStringItem* pRule = pOldRule ? (SfxStringItem*)pOldRule->Clone() : NULL;
+ const SfxStringItem* pOldRule = static_cast<const SfxStringItem*>(GetOldItem( *rSet, SID_ATTR_PARA_NUMRULE));
+ SfxStringItem* pRule = pOldRule ? static_cast<SfxStringItem*>(pOldRule->Clone()) : NULL;
if (pRule)
{
pRule->SetValue(aStyle);
@@ -207,7 +207,7 @@ void SwParagraphNumTabPage::Reset( const SfxItemSet* rSet )
if(eItemState > SfxItemState::DEFAULT )
{
bCurNumrule = true;
- const SfxBoolItem& rStart = (const SfxBoolItem&)rSet->Get(FN_NUMBER_NEWSTART);
+ const SfxBoolItem& rStart = static_cast<const SfxBoolItem&>(rSet->Get(FN_NUMBER_NEWSTART));
m_pNewStartCB->SetState(rStart.GetValue() ? TRISTATE_TRUE : TRISTATE_FALSE );
@@ -235,7 +235,7 @@ void SwParagraphNumTabPage::Reset( const SfxItemSet* rSet )
StyleHdl_Impl(m_pNumberStyleLB);
if( SfxItemState::DEFAULT <= rSet->GetItemState(RES_LINENUMBER))
{
- SwFmtLineNumber& rNum = (SwFmtLineNumber&)rSet->Get(RES_LINENUMBER);
+ const SwFmtLineNumber& rNum = static_cast<const SwFmtLineNumber&>(rSet->Get(RES_LINENUMBER));
sal_uLong nStartValue = rNum.GetStartValue();
bool bCount = rNum.IsCount();
m_pCountParaCB->SetState( bCount ? TRISTATE_TRUE : TRISTATE_FALSE );