summaryrefslogtreecommitdiff
path: root/slideshow
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-15 09:03:09 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-15 09:03:09 +0100
commitb20ccaf2bc25997563f00aca4b47ae5353140030 (patch)
tree63d3425fbb93aa559e10486f91f6e297db9301b2 /slideshow
parentc81e83258510065f9c8ab244f59fbb03c299e56c (diff)
More loplugin:cstylecast: slideshow
Change-Id: Id1e11239490bd42da785f023f5af4e8b44fca341
Diffstat (limited to 'slideshow')
-rw-r--r--slideshow/source/engine/shapeattributelayer.cxx6
-rw-r--r--slideshow/source/engine/shapes/shapeimporter.cxx2
-rw-r--r--slideshow/source/engine/shapes/viewshape.cxx2
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;
}