[Libreoffice-commits] core.git: starmath/source
Takeshi Abe
tabe at fixedpoint.jp
Tue May 3 09:15:12 UTC 2016
starmath/source/cfgitem.cxx | 2 +-
starmath/source/unomodel.cxx | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 022b466db1142f95a4f0088b46abeb2787323b5e
Author: Takeshi Abe <tabe at fixedpoint.jp>
Date: Mon May 2 15:47:20 2016 +0900
starmath: Avoid C-style cast
Change-Id: If8fdb9def831ea9720c3cad1379be47aba7dec30
Reviewed-on: https://gerrit.libreoffice.org/24584
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/starmath/source/cfgitem.cxx b/starmath/source/cfgitem.cxx
index 1109c07..263f2da 100644
--- a/starmath/source/cfgitem.cxx
+++ b/starmath/source/cfgitem.cxx
@@ -846,7 +846,7 @@ void SmMathConfig::LoadFormat()
++pVal;
// StandardFormat/HorizontalAlignment
if (pVal->hasValue() && (*pVal >>= nTmp16))
- pFormat->SetHorAlign( (SmHorAlign) nTmp16 );
+ pFormat->SetHorAlign( static_cast<SmHorAlign>(nTmp16) );
++pVal;
// StandardFormat/BaseSize
if (pVal->hasValue() && (*pVal >>= nTmp16))
diff --git a/starmath/source/unomodel.cxx b/starmath/source/unomodel.cxx
index d0b066f..e6e9279 100644
--- a/starmath/source/unomodel.cxx
+++ b/starmath/source/unomodel.cxx
@@ -550,7 +550,7 @@ void SmModel::_setPropertyValues(const PropertyMapEntry** ppEntries, const Any*
*pValues >>= nVal;
if(nVal < 0 || nVal > 2)
throw IllegalArgumentException();
- aFormat.SetHorAlign((SmHorAlign)nVal);
+ aFormat.SetHorAlign(static_cast<SmHorAlign>(nVal));
}
break;
More information about the Libreoffice-commits
mailing list