diff options
author | Noel Grandin <noel@peralex.com> | 2016-09-29 12:43:17 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-09-30 06:57:26 +0000 |
commit | 4d87443bf59c3242d58b56cc1583d73213ae1f2f (patch) | |
tree | c1f74fc569506299100b5063f14c09e46035a943 /sd/source | |
parent | tdf#75757 Remove inheritance from std container (diff) | |
download | core-4d87443bf59c3242d58b56cc1583d73213ae1f2f.tar.gz core-4d87443bf59c3242d58b56cc1583d73213ae1f2f.zip |
loplugin:constantparam
Change-Id: Idbe8c8e6b3d44cacce296ec8c79b2b244281057c
Reviewed-on: https://gerrit.libreoffice.org/29321
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source')
-rw-r--r-- | sd/source/ui/inc/slideshow.hxx | 3 | ||||
-rw-r--r-- | sd/source/ui/slideshow/slideshow.cxx | 10 |
2 files changed, 4 insertions, 9 deletions
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 ); |