diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2015-10-04 12:24:39 +0900 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-10-05 06:19:00 +0000 |
commit | a983d1a0b8a60b336e02e018b703b9a0727f2b33 (patch) | |
tree | cb102a31fcd3f76d751b978e364c96d155bb83fd /starmath | |
parent | f811037c55f1fe41b2411958ace8c1b04c68ea14 (diff) |
starmath: Kill c-style cast
Change-Id: I6f65c2518b25fbe3a08070e81c33ce346ffb0801
Reviewed-on: https://gerrit.libreoffice.org/19117
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/dialog.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/starmath/source/dialog.cxx b/starmath/source/dialog.cxx index 8ada350c6309..f8cf2e04796e 100644 --- a/starmath/source/dialog.cxx +++ b/starmath/source/dialog.cxx @@ -214,7 +214,7 @@ bool SmPrintOptionsTabPage::FillItemSet(SfxItemSet* rSet) else nPrintSize = PRINT_SIZE_ZOOMED; - rSet->Put(SfxUInt16Item(GetWhich(SID_PRINTSIZE), (sal_uInt16) nPrintSize)); + rSet->Put(SfxUInt16Item(GetWhich(SID_PRINTSIZE), nPrintSize)); rSet->Put(SfxUInt16Item(GetWhich(SID_PRINTZOOM), (sal_uInt16) m_pZoom->GetValue())); rSet->Put(SfxBoolItem(GetWhich(SID_PRINTTITLE), m_pTitle->IsChecked())); rSet->Put(SfxBoolItem(GetWhich(SID_PRINTTEXT), m_pText->IsChecked())); @@ -228,7 +228,7 @@ bool SmPrintOptionsTabPage::FillItemSet(SfxItemSet* rSet) void SmPrintOptionsTabPage::Reset(const SfxItemSet* rSet) { - SmPrintSize ePrintSize = (SmPrintSize)static_cast<const SfxUInt16Item &>(rSet->Get(GetWhich(SID_PRINTSIZE))).GetValue(); + SmPrintSize ePrintSize = static_cast<SmPrintSize>(static_cast<const SfxUInt16Item &>(rSet->Get(GetWhich(SID_PRINTSIZE))).GetValue()); m_pSizeNormal->Check(ePrintSize == PRINT_SIZE_NORMAL); m_pSizeScaled->Check(ePrintSize == PRINT_SIZE_SCALED); |