summaryrefslogtreecommitdiff
path: root/sd/source/ui
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-09-29 12:43:17 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-09-30 06:57:26 +0000
commit4d87443bf59c3242d58b56cc1583d73213ae1f2f (patch)
treec1f74fc569506299100b5063f14c09e46035a943 /sd/source/ui
parent8e812b87ff7f8c5bf2c6f8858646c55effd2eea3 (diff)
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/ui')
-rw-r--r--sd/source/ui/inc/slideshow.hxx3
-rw-r--r--sd/source/ui/slideshow/slideshow.cxx10
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 );