summaryrefslogtreecommitdiff
path: root/sd/source/ui/slideshow/slideshowimpl.cxx
diff options
context:
space:
mode:
authorArmin Le Grand <Armin.Le.Grand@cib.de>2018-04-09 15:14:44 +0200
committerArmin Le Grand <Armin.Le.Grand@cib.de>2018-04-10 16:17:10 +0200
commite292ef25c6a4ab4766db6a871d402c52f2b9fd71 (patch)
tree8dd026e69bc82dfbe5009a838cd745ff3b2f49d5 /sd/source/ui/slideshow/slideshowimpl.cxx
parent64a5d65f4c6226d8e98d2f33bf86f748d4ac9280 (diff)
Make NotifyDocumentEvent use SdDrawDocument& instead of ptr
Change-Id: I00f83da44d2f07fe570f9ce6c0f506e4204a5ef9 Reviewed-on: https://gerrit.libreoffice.org/52633 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Armin Le Grand <Armin.Le.Grand@cib.de>
Diffstat (limited to 'sd/source/ui/slideshow/slideshowimpl.cxx')
-rw-r--r--sd/source/ui/slideshow/slideshowimpl.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/sd/source/ui/slideshow/slideshowimpl.cxx b/sd/source/ui/slideshow/slideshowimpl.cxx
index d30256f48a10..aade2af55ce0 100644
--- a/sd/source/ui/slideshow/slideshowimpl.cxx
+++ b/sd/source/ui/slideshow/slideshowimpl.cxx
@@ -557,7 +557,9 @@ void SAL_CALL SlideshowImpl::disposing()
RemoteServer::presentationStopped();
#endif
if( mxShow.is() && mpDoc )
- NotifyDocumentEvent( mpDoc, "OnEndPresentation" );
+ NotifyDocumentEvent(
+ *mpDoc,
+ "OnEndPresentation" );
if( mbAutoSaveWasOn )
setAutoSaveState( true );
@@ -1077,7 +1079,9 @@ bool SlideshowImpl::startShowImpl( const Sequence< beans::PropertyValue >& aProp
mxListenerProxy.set( new SlideShowListenerProxy( this, mxShow ) );
mxListenerProxy->addAsSlideShowListener();
- NotifyDocumentEvent( mpDoc, "OnStartPresentation");
+ NotifyDocumentEvent(
+ *mpDoc,
+ "OnStartPresentation");
displaySlideIndex( mpSlideController->getStartSlideIndex() );
return true;