diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-15 09:04:22 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-15 09:04:22 +0100 |
commit | e5fc690f018c266f373af9797f66c5ed87e0e805 (patch) | |
tree | e40a4ddd09df76719e9054e34450b6451e65e0a1 /oox | |
parent | f2b0eb086fcadec59fde957fe1717fecb537484b (diff) |
More loplugin:cstylecast: oox
Change-Id: I281f3f65e138316ba856d3036fd06b26896af901
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/export/drawingml.cxx | 6 | ||||
-rw-r--r-- | oox/source/token/relationship.cxx | 2 | ||||
-rw-r--r-- | oox/source/vml/vmlshape.cxx | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/oox/source/export/drawingml.cxx b/oox/source/export/drawingml.cxx index 36787c932a0a..3da6ad4f357e 100644 --- a/oox/source/export/drawingml.cxx +++ b/oox/source/export/drawingml.cxx @@ -1920,7 +1920,7 @@ void DrawingML::WriteParagraphNumbering(const Reference< XPropertySet >& rXPropS SAL_INFO("oox.shape", "pro name: " << aPropName); if ( aPropName == "NumberingType" ) { - nNumberingType = (SvxNumType)*o3tl::doAccess<sal_Int16>(pPropValue[i].Value); + nNumberingType = static_cast<SvxNumType>(*o3tl::doAccess<sal_Int16>(pPropValue[i].Value)); } else if ( aPropName == "Prefix" ) { @@ -2145,9 +2145,9 @@ void DrawingML::WriteParagraphProperties( const Reference< XTextContent >& rPara sal_Int16 nLevel = -1; GET( nLevel, NumberingLevel ); - sal_Int16 nTmp = (sal_Int16)style::ParagraphAdjust_LEFT; + sal_Int16 nTmp = sal_Int16(style::ParagraphAdjust_LEFT); GET( nTmp, ParaAdjust ); - style::ParagraphAdjust nAlignment = (style::ParagraphAdjust)nTmp; + style::ParagraphAdjust nAlignment = static_cast<style::ParagraphAdjust>(nTmp); bool bHasLinespacing = false; LineSpacing aLineSpacing; diff --git a/oox/source/token/relationship.cxx b/oox/source/token/relationship.cxx index f98e31cbbb6e..8c51332164ef 100644 --- a/oox/source/token/relationship.cxx +++ b/oox/source/token/relationship.cxx @@ -24,7 +24,7 @@ OUString getRelationship(Relationship eRelationship) if (itr != aMap.end()) return itr->second; - SAL_WARN("oox", "could not find an entry for the relationship: " << (int) eRelationship); + SAL_WARN("oox", "could not find an entry for the relationship: " << static_cast<int>(eRelationship)); return OUString(); } diff --git a/oox/source/vml/vmlshape.cxx b/oox/source/vml/vmlshape.cxx index 5e91bafe3f53..7c9fcf3f2c67 100644 --- a/oox/source/vml/vmlshape.cxx +++ b/oox/source/vml/vmlshape.cxx @@ -568,7 +568,7 @@ void lcl_setSurround(PropertySet& rPropSet, const ShapeTypeModel& rTypeModel, co else if ( aWrapType == "topAndBottom" ) nSurround = css::text::WrapTextMode_NONE; - rPropSet.setProperty(PROP_Surround, (sal_Int32)nSurround); + rPropSet.setProperty(PROP_Surround, static_cast<sal_Int32>(nSurround)); } void lcl_SetAnchorType(PropertySet& rPropSet, const ShapeTypeModel& rTypeModel, const GraphicHelper& rGraphicHelper) |