loplugin:virtualdead unused params in ShapeListenerEventHandler
Change-Id: Ied95fd01912737ba1ae73fb1fea6ddd57eb8a14d Reviewed-on: https://gerrit.libreoffice.org/81070 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
@@ -295,12 +295,6 @@ slideshow/source/engine/opengl/TransitionImpl.hxx:180
|
|||||||
slideshow/source/inc/animation.hxx:61
|
slideshow/source/inc/animation.hxx:61
|
||||||
void slideshow::internal::Animation::prefetch(const class std::shared_ptr<class slideshow::internal::AnimatableShape> &,const class std::shared_ptr<class slideshow::internal::ShapeAttributeLayer> &,)
|
void slideshow::internal::Animation::prefetch(const class std::shared_ptr<class slideshow::internal::AnimatableShape> &,const class std::shared_ptr<class slideshow::internal::ShapeAttributeLayer> &,)
|
||||||
00
|
00
|
||||||
slideshow/source/inc/shapelistenereventhandler.hxx:51
|
|
||||||
_Bool slideshow::internal::ShapeListenerEventHandler::listenerAdded(const class com::sun::star::uno::Reference<class com::sun::star::presentation::XShapeEventListener> &,const class com::sun::star::uno::Reference<class com::sun::star::drawing::XShape> &,)
|
|
||||||
01
|
|
||||||
slideshow/source/inc/shapelistenereventhandler.hxx:54
|
|
||||||
_Bool slideshow::internal::ShapeListenerEventHandler::listenerRemoved(const class com::sun::star::uno::Reference<class com::sun::star::presentation::XShapeEventListener> &,const class com::sun::star::uno::Reference<class com::sun::star::drawing::XShape> &,)
|
|
||||||
01
|
|
||||||
starmath/source/wordexportbase.hxx:37
|
starmath/source/wordexportbase.hxx:37
|
||||||
void SmWordExportBase::HandleText(const class SmNode *,int,)
|
void SmWordExportBase::HandleText(const class SmNode *,int,)
|
||||||
10
|
10
|
||||||
|
@@ -1027,21 +1027,19 @@ void EventMultiplexer::removeHyperlinkHandler( const HyperlinkHandlerSharedPtr&
|
|||||||
}
|
}
|
||||||
|
|
||||||
void EventMultiplexer::notifyShapeListenerAdded(
|
void EventMultiplexer::notifyShapeListenerAdded(
|
||||||
const uno::Reference<presentation::XShapeEventListener>& xListener,
|
|
||||||
const uno::Reference<drawing::XShape>& xShape )
|
const uno::Reference<drawing::XShape>& xShape )
|
||||||
{
|
{
|
||||||
mpImpl->maShapeListenerHandlers.applyAll(
|
mpImpl->maShapeListenerHandlers.applyAll(
|
||||||
[&xListener, &xShape]( const ShapeListenerEventHandlerSharedPtr& pHandler )
|
[&xShape]( const ShapeListenerEventHandlerSharedPtr& pHandler )
|
||||||
{ return pHandler->listenerAdded( xListener, xShape ); } );
|
{ return pHandler->listenerAdded( xShape ); } );
|
||||||
}
|
}
|
||||||
|
|
||||||
void EventMultiplexer::notifyShapeListenerRemoved(
|
void EventMultiplexer::notifyShapeListenerRemoved(
|
||||||
const uno::Reference<presentation::XShapeEventListener>& xListener,
|
|
||||||
const uno::Reference<drawing::XShape>& xShape )
|
const uno::Reference<drawing::XShape>& xShape )
|
||||||
{
|
{
|
||||||
mpImpl->maShapeListenerHandlers.applyAll(
|
mpImpl->maShapeListenerHandlers.applyAll(
|
||||||
[&xListener, &xShape]( const ShapeListenerEventHandlerSharedPtr& pHandler )
|
[&xShape]( const ShapeListenerEventHandlerSharedPtr& pHandler )
|
||||||
{ return pHandler->listenerRemoved( xListener, xShape ); } );
|
{ return pHandler->listenerRemoved( xShape ); } );
|
||||||
}
|
}
|
||||||
|
|
||||||
void EventMultiplexer::notifyUserPaintColor( RGBColor const& rUserColor )
|
void EventMultiplexer::notifyUserPaintColor( RGBColor const& rUserColor )
|
||||||
|
@@ -76,7 +76,7 @@ void ShapeManagerImpl::activate()
|
|||||||
// clone listener map
|
// clone listener map
|
||||||
uno::Reference<presentation::XShapeEventListener> xDummyListener;
|
uno::Reference<presentation::XShapeEventListener> xDummyListener;
|
||||||
for( const auto& rListener : mrGlobalListenersMap )
|
for( const auto& rListener : mrGlobalListenersMap )
|
||||||
listenerAdded( xDummyListener, rListener.first );
|
listenerAdded( rListener.first );
|
||||||
|
|
||||||
// clone cursor map
|
// clone cursor map
|
||||||
for( const auto& rListener : mrGlobalCursorMap )
|
for( const auto& rListener : mrGlobalCursorMap )
|
||||||
@@ -291,8 +291,7 @@ void ShapeManagerImpl::revokeSubset( const AttributableShapeSharedPtr& rOrigShap
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool ShapeManagerImpl::listenerAdded(
|
bool ShapeManagerImpl::listenerAdded(
|
||||||
const uno::Reference<presentation::XShapeEventListener>& /*xListener*/,
|
const uno::Reference<drawing::XShape>& xShape )
|
||||||
const uno::Reference<drawing::XShape>& xShape )
|
|
||||||
{
|
{
|
||||||
ShapeEventListenerMap::const_iterator aIter;
|
ShapeEventListenerMap::const_iterator aIter;
|
||||||
if( (aIter = mrGlobalListenersMap.find( xShape )) ==
|
if( (aIter = mrGlobalListenersMap.find( xShape )) ==
|
||||||
@@ -313,9 +312,7 @@ bool ShapeManagerImpl::listenerAdded(
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ShapeManagerImpl::listenerRemoved(
|
bool ShapeManagerImpl::listenerRemoved( const uno::Reference<drawing::XShape>& xShape )
|
||||||
const uno::Reference<presentation::XShapeEventListener>& /*xListener*/,
|
|
||||||
const uno::Reference<drawing::XShape>& xShape )
|
|
||||||
{
|
{
|
||||||
// shape really erased from map? maybe there are other listeners
|
// shape really erased from map? maybe there are other listeners
|
||||||
// for the same shape pending...
|
// for the same shape pending...
|
||||||
|
@@ -146,11 +146,9 @@ private:
|
|||||||
// ShapeListenerEventHandler
|
// ShapeListenerEventHandler
|
||||||
|
|
||||||
|
|
||||||
virtual bool listenerAdded( const css::uno::Reference< css::presentation::XShapeEventListener>& xListener,
|
virtual bool listenerAdded( const css::uno::Reference< css::drawing::XShape>& xShape ) override;
|
||||||
const css::uno::Reference< css::drawing::XShape>& xShape ) override;
|
|
||||||
|
|
||||||
virtual bool listenerRemoved( const css::uno::Reference< css::presentation::XShapeEventListener>& xListener,
|
virtual bool listenerRemoved( const css::uno::Reference< css::drawing::XShape>& xShape ) override;
|
||||||
const css::uno::Reference< css::drawing::XShape>& xShape ) override;
|
|
||||||
|
|
||||||
void cursorChanged( const css::uno::Reference< css::drawing::XShape>& xShape,
|
void cursorChanged( const css::uno::Reference< css::drawing::XShape>& xShape,
|
||||||
sal_Int16 nCursor );
|
sal_Int16 nCursor );
|
||||||
|
@@ -1830,8 +1830,7 @@ void SlideShowImpl::addShapeEventListener(
|
|||||||
if( aIter->second.get() )
|
if( aIter->second.get() )
|
||||||
aIter->second->addInterface( xListener );
|
aIter->second->addInterface( xListener );
|
||||||
|
|
||||||
maEventMultiplexer.notifyShapeListenerAdded(xListener,
|
maEventMultiplexer.notifyShapeListenerAdded(xShape);
|
||||||
xShape);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void SlideShowImpl::removeShapeEventListener(
|
void SlideShowImpl::removeShapeEventListener(
|
||||||
@@ -1857,8 +1856,7 @@ void SlideShowImpl::removeShapeEventListener(
|
|||||||
aIter->second->removeInterface( xListener );
|
aIter->second->removeInterface( xListener );
|
||||||
}
|
}
|
||||||
|
|
||||||
maEventMultiplexer.notifyShapeListenerRemoved(xListener,
|
maEventMultiplexer.notifyShapeListenerRemoved(xShape);
|
||||||
xShape);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void SlideShowImpl::setShapeCursor(
|
void SlideShowImpl::setShapeCursor(
|
||||||
|
@@ -496,16 +496,14 @@ public:
|
|||||||
This method announces that the given listener was added for
|
This method announces that the given listener was added for
|
||||||
the specified shape.
|
the specified shape.
|
||||||
*/
|
*/
|
||||||
void notifyShapeListenerAdded( const css::uno::Reference<css::presentation::XShapeEventListener>& xListener,
|
void notifyShapeListenerAdded( const css::uno::Reference<css::drawing::XShape>& xShape );
|
||||||
const css::uno::Reference<css::drawing::XShape>& xShape );
|
|
||||||
|
|
||||||
/** A shape event listener was removed
|
/** A shape event listener was removed
|
||||||
|
|
||||||
This method announces that the given listener was removed for
|
This method announces that the given listener was removed for
|
||||||
the specified shape.
|
the specified shape.
|
||||||
*/
|
*/
|
||||||
void notifyShapeListenerRemoved( const css::uno::Reference<css::presentation::XShapeEventListener>& xListener,
|
void notifyShapeListenerRemoved( const css::uno::Reference<css::drawing::XShape>& xShape );
|
||||||
const css::uno::Reference<css::drawing::XShape>& xShape );
|
|
||||||
|
|
||||||
/** Notify a new user paint color
|
/** Notify a new user paint color
|
||||||
|
|
||||||
|
@@ -48,11 +48,9 @@ namespace slideshow
|
|||||||
public:
|
public:
|
||||||
virtual ~ShapeListenerEventHandler() {}
|
virtual ~ShapeListenerEventHandler() {}
|
||||||
|
|
||||||
virtual bool listenerAdded( const css::uno::Reference<css::presentation::XShapeEventListener>& xListener,
|
virtual bool listenerAdded( const css::uno::Reference<css::drawing::XShape>& xShape ) = 0;
|
||||||
const css::uno::Reference<css::drawing::XShape>& xShape ) = 0;
|
|
||||||
|
|
||||||
virtual bool listenerRemoved( const css::uno::Reference<css::presentation::XShapeEventListener>& xListener,
|
virtual bool listenerRemoved( const css::uno::Reference<css::drawing::XShape>& xShape ) = 0;
|
||||||
const css::uno::Reference<css::drawing::XShape>& xShape ) = 0;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef ::std::shared_ptr< ShapeListenerEventHandler > ShapeListenerEventHandlerSharedPtr;
|
typedef ::std::shared_ptr< ShapeListenerEventHandler > ShapeListenerEventHandlerSharedPtr;
|
||||||
|
Reference in New Issue
Block a user