summaryrefslogtreecommitdiff
path: root/sd/source/ui/slideshow/slideshow.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-08-03 10:23:01 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-08-03 11:06:54 +0200
commitdafae0fe31353a8092334328d499bc108d39e44c (patch)
tree7c7d58067996627f163e2f65f7faae86dd91615a /sd/source/ui/slideshow/slideshow.cxx
parenteba883c8a2ce045fc7bd3848d796ca10b7f4ba51 (diff)
loplugin:constparams in sd
Change-Id: I833c6da99d5ccb8f6a8b5c905bee73b75fde0a89 Reviewed-on: https://gerrit.libreoffice.org/40700 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source/ui/slideshow/slideshow.cxx')
-rw-r--r--sd/source/ui/slideshow/slideshow.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/sd/source/ui/slideshow/slideshow.cxx b/sd/source/ui/slideshow/slideshow.cxx
index 574db3f4b826..345b1b6a932a 100644
--- a/sd/source/ui/slideshow/slideshow.cxx
+++ b/sd/source/ui/slideshow/slideshow.cxx
@@ -145,7 +145,7 @@ rtl::Reference< SlideShow > SlideShow::Create( SdDrawDocument* pDoc )
return new SlideShow( pDoc );
}
-rtl::Reference< SlideShow > SlideShow::GetSlideShow( SdDrawDocument* pDocument )
+rtl::Reference< SlideShow > SlideShow::GetSlideShow( SdDrawDocument const * pDocument )
{
rtl::Reference< SlideShow > xRet;
@@ -155,18 +155,18 @@ rtl::Reference< SlideShow > SlideShow::GetSlideShow( SdDrawDocument* pDocument )
return xRet;
}
-rtl::Reference< SlideShow > SlideShow::GetSlideShow( SdDrawDocument& rDocument )
+rtl::Reference< SlideShow > SlideShow::GetSlideShow( SdDrawDocument const & rDocument )
{
return rtl::Reference< SlideShow >(
dynamic_cast< SlideShow* >( rDocument.getPresentation().get() ) );
}
-rtl::Reference< SlideShow > SlideShow::GetSlideShow( ViewShellBase& rBase )
+rtl::Reference< SlideShow > SlideShow::GetSlideShow( ViewShellBase const & rBase )
{
return GetSlideShow( rBase.GetDocument() );
}
-css::uno::Reference< css::presentation::XSlideShowController > SlideShow::GetSlideShowController(ViewShellBase& rBase )
+css::uno::Reference< css::presentation::XSlideShowController > SlideShow::GetSlideShowController(ViewShellBase const & rBase )
{
rtl::Reference< SlideShow > xSlideShow( GetSlideShow( rBase ) );
@@ -177,7 +177,7 @@ css::uno::Reference< css::presentation::XSlideShowController > SlideShow::GetSli
return xRet;
}
-bool SlideShow::StartPreview( ViewShellBase& rBase,
+bool SlideShow::StartPreview( ViewShellBase const & rBase,
const css::uno::Reference< css::drawing::XDrawPage >& xDrawPage,
const css::uno::Reference< css::animations::XAnimationNode >& xAnimationNode )
{
@@ -188,14 +188,14 @@ bool SlideShow::StartPreview( ViewShellBase& rBase,
return false;
}
-void SlideShow::Stop( ViewShellBase& rBase )
+void SlideShow::Stop( ViewShellBase const & rBase )
{
rtl::Reference< SlideShow > xSlideShow( GetSlideShow( rBase ) );
if( xSlideShow.is() )
xSlideShow->end();
}
-bool SlideShow::IsRunning( ViewShellBase& rBase )
+bool SlideShow::IsRunning( ViewShellBase const & rBase )
{
rtl::Reference< SlideShow > xSlideShow( GetSlideShow( rBase ) );
return xSlideShow.is() && xSlideShow->isRunning();
@@ -1159,7 +1159,7 @@ sal_Int32 SlideShow::GetDisplay()
return nDisplay;
}
-bool SlideShow::dependsOn( ViewShellBase* pViewShellBase )
+bool SlideShow::dependsOn( ViewShellBase const * pViewShellBase )
{
return mxController.is() && (pViewShellBase == mpCurrentViewShellBase) && mpFullScreenViewShellBase;
}