starmath/source/cfgitem.cxx | 2 +- starmath/source/unomodel.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
New commits: commit 022b466db1142f95a4f0088b46abeb2787323b5e Author: Takeshi Abe <t...@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 <c...@libreoffice.org> Reviewed-by: Caolán McNamara <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@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;
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits