summaryrefslogtreecommitdiff
path: root/slideshow
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-04-06 18:31:23 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-04-06 18:31:23 +0200
commite40f3cf3302d397ef0dc2d8f0d308f902be3a98d (patch)
tree1eab1f632d710ffa7751174180e022407c272e87 /slideshow
parent1221ee605ac3bcab982bd8e63c5fbf39bbfd605c (diff)
Improved loplugin:redundantcast, static_cast on arithmetic types: slideshow
Change-Id: I5f2031068ef0ab8e777fddfa90e7a15836938b48
Diffstat (limited to 'slideshow')
-rw-r--r--slideshow/source/engine/shapes/viewappletshape.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/slideshow/source/engine/shapes/viewappletshape.cxx b/slideshow/source/engine/shapes/viewappletshape.cxx
index c9de11fb34fd..3f13d2259633 100644
--- a/slideshow/source/engine/shapes/viewappletshape.cxx
+++ b/slideshow/source/engine/shapes/viewappletshape.cxx
@@ -184,8 +184,8 @@ namespace slideshow
uno::Reference< awt::XWindow > xSurroundingWindow( mxFrame->getContainerWindow() );
if( xSurroundingWindow.is() )
- xSurroundingWindow->setPosSize( static_cast<sal_Int32>(rPixelBounds.getMinX()),
- static_cast<sal_Int32>(rPixelBounds.getMinY()),
+ xSurroundingWindow->setPosSize( rPixelBounds.getMinX(),
+ rPixelBounds.getMinY(),
static_cast<sal_Int32>(rPixelBounds.getWidth()),
static_cast<sal_Int32>(rPixelBounds.getHeight()),
awt::PosSize::POSSIZE );
@@ -250,8 +250,8 @@ namespace slideshow
uno::Reference< awt::XWindow > xFrameWindow( mxFrame->getContainerWindow() );
if( xFrameWindow.is() )
- xFrameWindow->setPosSize( static_cast<sal_Int32>(rPixelBounds.getMinX()),
- static_cast<sal_Int32>(rPixelBounds.getMinY()),
+ xFrameWindow->setPosSize( rPixelBounds.getMinX(),
+ rPixelBounds.getMinY(),
static_cast<sal_Int32>(rPixelBounds.getWidth()),
static_cast<sal_Int32>(rPixelBounds.getHeight()),
awt::PosSize::POSSIZE );