diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:13:55 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:13:55 +0100 |
commit | c049c76fc521f2b55b39a6e9eb0f0092bcf6ef77 (patch) | |
tree | 2bc2c059a6f6a175a0c0e5321887adc077fef419 /svx/source/unodraw/unoshap2.cxx | |
parent | 0ae2d98d1f6d29c80bd1ee830db4c333e4ee1e1d (diff) |
More loplugin:cstylecast: svx
auto-rewrite with <https://gerrit.libreoffice.org/#/c/47798/> "Enable
loplugin:cstylecast for some more cases" plus
solenv/clang-format/reformat-formatted-files
Change-Id: I100e6c14cbf1d780f0e5ebca6b0c9e71ce1caaf7
Diffstat (limited to 'svx/source/unodraw/unoshap2.cxx')
-rw-r--r-- | svx/source/unodraw/unoshap2.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/svx/source/unodraw/unoshap2.cxx b/svx/source/unodraw/unoshap2.cxx index 668e7f4a8c77..35a07a496348 100644 --- a/svx/source/unodraw/unoshap2.cxx +++ b/svx/source/unodraw/unoshap2.cxx @@ -665,11 +665,11 @@ namespace // note that order matters: // lcl_convertTextAlignmentToParaAdjustment and lcl_convertParaAdjustmentToTextAlignment search this map from the _beginning_ // and use the first matching entry - {style::ParagraphAdjust_LEFT, (sal_Int16)awt::TextAlign::LEFT}, - {style::ParagraphAdjust_CENTER, (sal_Int16)awt::TextAlign::CENTER}, - {style::ParagraphAdjust_RIGHT, (sal_Int16)awt::TextAlign::RIGHT}, - {style::ParagraphAdjust_BLOCK, (sal_Int16)awt::TextAlign::RIGHT}, - {style::ParagraphAdjust_STRETCH, (sal_Int16)awt::TextAlign::LEFT}, + {style::ParagraphAdjust_LEFT, sal_Int16(awt::TextAlign::LEFT)}, + {style::ParagraphAdjust_CENTER, sal_Int16(awt::TextAlign::CENTER)}, + {style::ParagraphAdjust_RIGHT, sal_Int16(awt::TextAlign::RIGHT)}, + {style::ParagraphAdjust_BLOCK, sal_Int16(awt::TextAlign::RIGHT)}, + {style::ParagraphAdjust_STRETCH, sal_Int16(awt::TextAlign::LEFT)}, {(style::ParagraphAdjust)-1,-1} }; @@ -1031,7 +1031,7 @@ bool SvxShapePolyPolygon::setPropertyValueImpl( const OUString& rName, const Sfx void B2DPolyPolygonToSvxPointSequenceSequence( const basegfx::B2DPolyPolygon& rPolyPoly, drawing::PointSequenceSequence& rRetval ) { - if( (sal_uInt32)rRetval.getLength() != rPolyPoly.count() ) + if( static_cast<sal_uInt32>(rRetval.getLength()) != rPolyPoly.count() ) rRetval.realloc( rPolyPoly.count() ); // get pointer to external arrays @@ -1907,7 +1907,7 @@ bool SvxCustomShape::getPropertyValueImpl( const OUString& rName, const SfxItemP { double fAngle = static_cast<SdrObjCustomShape*>(mpObj.get())->GetObjectRotation(); fAngle *= 100; - rValue <<= (sal_Int32)fAngle; + rValue <<= static_cast<sal_Int32>(fAngle); return true; } default: |