diff options
Diffstat (limited to 'starmath/source')
-rw-r--r-- | starmath/source/cfgitem.cxx | 2 | ||||
-rw-r--r-- | starmath/source/unomodel.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/starmath/source/cfgitem.cxx b/starmath/source/cfgitem.cxx index 1109c07fe00b..263f2dae8556 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 d0b066fbd0a7..e6e9279342a0 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; |