summaryrefslogtreecommitdiff
path: root/slideshow/source/engine/shapes
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/source/engine/shapes
parentc81e83258510065f9c8ab244f59fbb03c299e56c (diff)
More loplugin:cstylecast: slideshow
Change-Id: Id1e11239490bd42da785f023f5af4e8b44fca341
Diffstat (limited to 'slideshow/source/engine/shapes')
-rw-r--r--slideshow/source/engine/shapes/shapeimporter.cxx2
-rw-r--r--slideshow/source/engine/shapes/viewshape.cxx2
2 files changed, 2 insertions, 2 deletions
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;
}