diff options
author | Noel <noel.grandin@collabora.co.uk> | 2021-02-16 12:56:38 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-02-16 15:00:01 +0100 |
commit | 5ea8d87dfee68fe3564a58230664d2f2a2852a51 (patch) | |
tree | 98d2ebbfbc4dae9342ce92b5dc8d97cfe9149417 /slideshow | |
parent | b7d8c5bc614e826dbe0588593a4de5102ed22cda (diff) |
loplugin:referencecasting in slideshow..starmath
Change-Id: Id9dc0ac27897c8a3650424db65d3a05e2fe418f0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110986
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'slideshow')
-rw-r--r-- | slideshow/source/engine/eventmultiplexer.cxx | 12 | ||||
-rw-r--r-- | slideshow/source/engine/opengl/TransitionerImpl.cxx | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/slideshow/source/engine/eventmultiplexer.cxx b/slideshow/source/engine/eventmultiplexer.cxx index 678c44e42e50..2b53073c7bea 100644 --- a/slideshow/source/engine/eventmultiplexer.cxx +++ b/slideshow/source/engine/eventmultiplexer.cxx @@ -589,7 +589,7 @@ void EventMultiplexerImpl::clear() ++aIter ) { if( (*aIter)->getUnoView().is() ) - (*aIter)->getUnoView()->removeMouseListener( mxListener.get() ); + (*aIter)->getUnoView()->removeMouseListener( mxListener ); } } @@ -601,7 +601,7 @@ void EventMultiplexerImpl::clear() ++aIter ) { if( (*aIter)->getUnoView().is() ) - (*aIter)->getUnoView()->removeMouseMotionListener( mxListener.get() ); + (*aIter)->getUnoView()->removeMouseMotionListener( mxListener ); } } @@ -1160,11 +1160,11 @@ void EventMultiplexer::notifyViewAdded( const UnoViewSharedPtr& rView ) if( mpImpl->isMouseListenerRegistered() ) rUnoView->addMouseListener( - mpImpl->mxListener.get() ); + mpImpl->mxListener ); if( !mpImpl->maMouseMoveHandlers.isEmpty() ) rUnoView->addMouseMotionListener( - mpImpl->mxListener.get() ); + mpImpl->mxListener ); mpImpl->maViewHandlers.applyAll( [&rView]( const ViewEventHandlerWeakPtr& pHandler ) @@ -1182,11 +1182,11 @@ void EventMultiplexer::notifyViewRemoved( const UnoViewSharedPtr& rView ) if( mpImpl->isMouseListenerRegistered() ) rUnoView->removeMouseListener( - mpImpl->mxListener.get() ); + mpImpl->mxListener ); if( !mpImpl->maMouseMoveHandlers.isEmpty() ) rUnoView->removeMouseMotionListener( - mpImpl->mxListener.get() ); + mpImpl->mxListener ); mpImpl->maViewHandlers.applyAll( [&rView]( const ViewEventHandlerWeakPtr& pHandler ) diff --git a/slideshow/source/engine/opengl/TransitionerImpl.cxx b/slideshow/source/engine/opengl/TransitionerImpl.cxx index 3565e6ef104e..f206f2015664 100644 --- a/slideshow/source/engine/opengl/TransitionerImpl.cxx +++ b/slideshow/source/engine/opengl/TransitionerImpl.cxx @@ -1314,7 +1314,7 @@ public: if ( !pTransition || !xRes->setTransition(pTransition) ) return uno::Reference< presentation::XTransition >(); - return uno::Reference<presentation::XTransition>(xRes.get()); + return xRes; } }; |