diff options
-rw-r--r-- | slideshow/source/engine/shapeattributelayer.cxx | 6 | ||||
-rw-r--r-- | slideshow/source/engine/shapes/shapeimporter.cxx | 2 | ||||
-rw-r--r-- | slideshow/source/engine/shapes/viewshape.cxx | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/slideshow/source/engine/shapeattributelayer.cxx b/slideshow/source/engine/shapeattributelayer.cxx index 73b100d7a204..f766707b696b 100644 --- a/slideshow/source/engine/shapeattributelayer.cxx +++ b/slideshow/source/engine/shapeattributelayer.cxx @@ -571,7 +571,7 @@ namespace slideshow void ShapeAttributeLayer::setFillStyle( const sal_Int16& rStyle ) { // TODO(Q1): Check range here. - meFillStyle = (drawing::FillStyle)rStyle; + meFillStyle = static_cast<drawing::FillStyle>(rStyle); mbFillStyleValid = true; ++mnContentState; } @@ -596,7 +596,7 @@ namespace slideshow void ShapeAttributeLayer::setLineStyle( const sal_Int16& rStyle ) { // TODO(Q1): Check range here. - meLineStyle = (drawing::LineStyle)rStyle; + meLineStyle = static_cast<drawing::LineStyle>(rStyle); mbLineStyleValid = true; ++mnContentState; } @@ -762,7 +762,7 @@ namespace slideshow void ShapeAttributeLayer::setCharPosture( const sal_Int16& rStyle ) { // TODO(Q1): Check range here. - meCharPosture = (awt::FontSlant)rStyle; + meCharPosture = static_cast<awt::FontSlant>(rStyle); mbCharPostureValid = true; ++mnContentState; } diff --git a/slideshow/source/engine/shapes/shapeimporter.cxx b/slideshow/source/engine/shapes/shapeimporter.cxx index a79b8105f5f7..3d4122cda94b 100644 --- a/slideshow/source/engine/shapes/shapeimporter.cxx +++ b/slideshow/source/engine/shapes/shapeimporter.cxx @@ -355,7 +355,7 @@ ShapeSharedPtr ShapeImporter::createShape( getPropertyValue( nRotation, xPropSet, "RotateAngle" ); GraphicAttr aGraphAttrs; - aGraphAttrs.SetDrawMode( (GraphicDrawMode)eColorMode ); + aGraphAttrs.SetDrawMode( static_cast<GraphicDrawMode>(eColorMode) ); aGraphAttrs.SetLuminance( nLuminance ); aGraphAttrs.SetContrast( nContrast ); aGraphAttrs.SetChannelR( nRed ); diff --git a/slideshow/source/engine/shapes/viewshape.cxx b/slideshow/source/engine/shapes/viewshape.cxx index 2f360a40706a..fd874a46c886 100644 --- a/slideshow/source/engine/shapes/viewshape.cxx +++ b/slideshow/source/engine/shapes/viewshape.cxx @@ -141,7 +141,7 @@ namespace slideshow if( rAttr->isCharPostureValid() ) { aParms.maFontLetterForm = - rAttr->getCharPosture() == (sal_Int16)awt::FontSlant_NONE ? + rAttr->getCharPosture() == sal_Int16(awt::FontSlant_NONE) ? rendering::PanoseLetterForm::ANYTHING : rendering::PanoseLetterForm::OBLIQUE_CONTACT; } |