From 4d87443bf59c3242d58b56cc1583d73213ae1f2f Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 29 Sep 2016 12:43:17 +0200 Subject: loplugin:constantparam Change-Id: Idbe8c8e6b3d44cacce296ec8c79b2b244281057c Reviewed-on: https://gerrit.libreoffice.org/29321 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sd/source/ui/inc/slideshow.hxx | 3 +-- sd/source/ui/slideshow/slideshow.cxx | 10 +++------- 2 files changed, 4 insertions(+), 9 deletions(-) (limited to 'sd/source/ui') diff --git a/sd/source/ui/inc/slideshow.hxx b/sd/source/ui/inc/slideshow.hxx index e38d87b48cc7..6ed9dcace102 100644 --- a/sd/source/ui/inc/slideshow.hxx +++ b/sd/source/ui/inc/slideshow.hxx @@ -110,8 +110,7 @@ public: bool startPreview( const css::uno::Reference< css::drawing::XDrawPage >& xDrawPage, - const css::uno::Reference< css::animations::XAnimationNode >& xAnimationNode, - vcl::Window* pParent ); + const css::uno::Reference< css::animations::XAnimationNode >& xAnimationNode ); // uno api diff --git a/sd/source/ui/slideshow/slideshow.cxx b/sd/source/ui/slideshow/slideshow.cxx index b339a45c412e..7330d79b4fd7 100644 --- a/sd/source/ui/slideshow/slideshow.cxx +++ b/sd/source/ui/slideshow/slideshow.cxx @@ -185,7 +185,7 @@ bool SlideShow::StartPreview( ViewShellBase& rBase, { rtl::Reference< SlideShow > xSlideShow( GetSlideShow( rBase ) ); if( xSlideShow.is() ) - return xSlideShow->startPreview( xDrawPage, xAnimationNode, nullptr ); + return xSlideShow->startPreview( xDrawPage, xAnimationNode ); return false; } @@ -882,7 +882,7 @@ void SAL_CALL SlideShow::disposing() mpDoc = nullptr; } -bool SlideShow::startPreview( const Reference< XDrawPage >& xDrawPage, const Reference< XAnimationNode >& xAnimationNode, vcl::Window* pParent ) +bool SlideShow::startPreview( const Reference< XDrawPage >& xDrawPage, const Reference< XAnimationNode >& xAnimationNode ) { Sequence< PropertyValue > aArguments(4); @@ -895,12 +895,8 @@ bool SlideShow::startPreview( const Reference< XDrawPage >& xDrawPage, const Ref aArguments[2].Name = "AnimationNode"; aArguments[2].Value <<= xAnimationNode; - Reference< XWindow > xParentWindow; - if( pParent ) - xParentWindow = VCLUnoHelper::GetInterface( pParent ); - aArguments[3].Name = "ParentWindow"; - aArguments[3].Value <<= xParentWindow; + aArguments[3].Value <<= Reference< XWindow >(); startWithArguments( aArguments ); -- cgit