From 65134fb75c3e94b7869fb6d490f88bf4b252760e Mon Sep 17 00:00:00 2001 From: Siqi LIU Date: Thu, 25 Jul 2013 17:27:10 +0200 Subject: minor updates for avahi/bonjour refacotration Change-Id: I89e0115ddbea953de4ee0468c66e949070087a96 --- sd/source/ui/slideshow/slideshowimpl.cxx | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) (limited to 'sd/source/ui/slideshow') diff --git a/sd/source/ui/slideshow/slideshowimpl.cxx b/sd/source/ui/slideshow/slideshowimpl.cxx index f7fda9b7ea04..68b9b7766731 100644 --- a/sd/source/ui/slideshow/slideshowimpl.cxx +++ b/sd/source/ui/slideshow/slideshowimpl.cxx @@ -3065,6 +3065,11 @@ void SAL_CALL SlideshowImpl::setPointerMode( bool bSwitchPointerMode ) throw (cs makeAny( bSwitchPointerMode ), beans::PropertyState_DIRECT_VALUE ) ); } + catch ( Exception& ) + { + SAL_WARN( "sd.slideshow", "sd::SlideShowImpl::setPointerMode(), " + "exception caught: " << comphelper::anyToString( cppu::getCaughtException() )); + } } // -------------------------------------------------------------------- @@ -3072,13 +3077,18 @@ void SAL_CALL SlideshowImpl::setPointerPosition( const ::com::sun::star::geometr { SolarMutexGuard aSolarGuard; if (mxShow.is()) try - { - mxShow->setProperty( - beans::PropertyValue( "PointerPosition" , - -1, - makeAny( pos ), - beans::PropertyState_DIRECT_VALUE ) ); - } + { + mxShow->setProperty( + beans::PropertyValue( "PointerPosition" , + -1, + makeAny( pos ), + beans::PropertyState_DIRECT_VALUE ) ); + } + catch ( Exception& ) + { + SAL_WARN( "sd.slideshow", "sd::SlideShowImpl::setPointerPosition(), " + "exception caught: " << comphelper::anyToString( cppu::getCaughtException() )); + } } // -------------------------------------------------------------------- -- cgit