diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2016-05-02 15:47:20 +0900 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-05-03 09:14:43 +0000 |
commit | 022b466db1142f95a4f0088b46abeb2787323b5e (patch) | |
tree | a9a5d2a0b4caa6e38fb05e4f9c69b9c996e88635 /starmath | |
parent | bc10fa6d3b4b28b1e4edbbd5c463f2b9b707ed48 (diff) |
starmath: Avoid C-style cast
Change-Id: If8fdb9def831ea9720c3cad1379be47aba7dec30
Reviewed-on: https://gerrit.libreoffice.org/24584
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'starmath')
-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; |