[Libreoffice-commits] core.git: starmath/source

Takeshi Abe tabe at fixedpoint.jp
Sun Oct 4 23:19:23 PDT 2015


 starmath/source/dialog.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit a983d1a0b8a60b336e02e018b703b9a0727f2b33
Author: Takeshi Abe <tabe at fixedpoint.jp>
Date:   Sun Oct 4 12:24:39 2015 +0900

    starmath: Kill c-style cast
    
    Change-Id: I6f65c2518b25fbe3a08070e81c33ce346ffb0801
    Reviewed-on: https://gerrit.libreoffice.org/19117
    Reviewed-by: Noel Grandin <noelgrandin at gmail.com>
    Tested-by: Noel Grandin <noelgrandin at gmail.com>

diff --git a/starmath/source/dialog.cxx b/starmath/source/dialog.cxx
index 8ada350..f8cf2e0 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);


More information about the Libreoffice-commits mailing list