Kaydet (Commit) e40f3cf3 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Improved loplugin:redundantcast, static_cast on arithmetic types: slideshow

Change-Id: I5f2031068ef0ab8e777fddfa90e7a15836938b48
üst 1221ee60
...@@ -184,8 +184,8 @@ namespace slideshow ...@@ -184,8 +184,8 @@ namespace slideshow
uno::Reference< awt::XWindow > xSurroundingWindow( mxFrame->getContainerWindow() ); uno::Reference< awt::XWindow > xSurroundingWindow( mxFrame->getContainerWindow() );
if( xSurroundingWindow.is() ) if( xSurroundingWindow.is() )
xSurroundingWindow->setPosSize( static_cast<sal_Int32>(rPixelBounds.getMinX()), xSurroundingWindow->setPosSize( rPixelBounds.getMinX(),
static_cast<sal_Int32>(rPixelBounds.getMinY()), rPixelBounds.getMinY(),
static_cast<sal_Int32>(rPixelBounds.getWidth()), static_cast<sal_Int32>(rPixelBounds.getWidth()),
static_cast<sal_Int32>(rPixelBounds.getHeight()), static_cast<sal_Int32>(rPixelBounds.getHeight()),
awt::PosSize::POSSIZE ); awt::PosSize::POSSIZE );
...@@ -250,8 +250,8 @@ namespace slideshow ...@@ -250,8 +250,8 @@ namespace slideshow
uno::Reference< awt::XWindow > xFrameWindow( mxFrame->getContainerWindow() ); uno::Reference< awt::XWindow > xFrameWindow( mxFrame->getContainerWindow() );
if( xFrameWindow.is() ) if( xFrameWindow.is() )
xFrameWindow->setPosSize( static_cast<sal_Int32>(rPixelBounds.getMinX()), xFrameWindow->setPosSize( rPixelBounds.getMinX(),
static_cast<sal_Int32>(rPixelBounds.getMinY()), rPixelBounds.getMinY(),
static_cast<sal_Int32>(rPixelBounds.getWidth()), static_cast<sal_Int32>(rPixelBounds.getWidth()),
static_cast<sal_Int32>(rPixelBounds.getHeight()), static_cast<sal_Int32>(rPixelBounds.getHeight()),
awt::PosSize::POSSIZE ); awt::PosSize::POSSIZE );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment