From ac76cc7e605b1bc9c0ff8e24d0b9995a8247074e Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Fri, 23 May 2014 22:11:27 +0200 Subject: Prefer cppu::UnoType::get() to ::getCppuType((T*)0) part20 Change-Id: If87cdfb2c605254f6d69baa4ca5aec09091caa68 --- sdext/source/presenter/PresenterSlideShowView.cxx | 34 +++++++++++------------ 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'sdext/source') diff --git a/sdext/source/presenter/PresenterSlideShowView.cxx b/sdext/source/presenter/PresenterSlideShowView.cxx index 2a2b9909d125..795843c2426b 100644 --- a/sdext/source/presenter/PresenterSlideShowView.cxx +++ b/sdext/source/presenter/PresenterSlideShowView.cxx @@ -186,7 +186,7 @@ void PresenterSlideShowView::disposing (void) aEvent.Source = static_cast(this); ::cppu::OInterfaceContainerHelper* pIterator - = maBroadcaster.getContainer(getCppuType((Reference*)NULL)); + = maBroadcaster.getContainer(cppu::UnoType::get()); if (pIterator != NULL) pIterator->disposeAndClear(aEvent); @@ -391,7 +391,7 @@ void SAL_CALL PresenterSlideShowView::addTransformationChangedListener( { ThrowIfDisposed(); maBroadcaster.addListener( - getCppuType((Reference*)NULL), + cppu::UnoType::get(), rxListener); } @@ -401,7 +401,7 @@ void SAL_CALL PresenterSlideShowView::removeTransformationChangedListener( { ThrowIfDisposed(); maBroadcaster.removeListener( - getCppuType((Reference*)NULL), + cppu::UnoType::get(), rxListener); } @@ -411,7 +411,7 @@ void SAL_CALL PresenterSlideShowView::addPaintListener( { ThrowIfDisposed(); maBroadcaster.addListener( - getCppuType((Reference*)NULL), + cppu::UnoType::get(), rxListener); } @@ -421,7 +421,7 @@ void SAL_CALL PresenterSlideShowView::removePaintListener( { ThrowIfDisposed(); maBroadcaster.removeListener( - getCppuType((Reference*)NULL), + cppu::UnoType::get(), rxListener); } @@ -431,7 +431,7 @@ void SAL_CALL PresenterSlideShowView::addMouseListener( { ThrowIfDisposed(); maBroadcaster.addListener( - getCppuType((Reference*)NULL), + cppu::UnoType::get(), rxListener); } @@ -441,7 +441,7 @@ void SAL_CALL PresenterSlideShowView::removeMouseListener( { ThrowIfDisposed(); maBroadcaster.removeListener( - getCppuType((Reference*)NULL), + cppu::UnoType::get(), rxListener); } @@ -451,7 +451,7 @@ void SAL_CALL PresenterSlideShowView::addMouseMotionListener( { ThrowIfDisposed(); maBroadcaster.addListener( - getCppuType((Reference*)NULL), + cppu::UnoType::get(), rxListener); } @@ -461,7 +461,7 @@ void SAL_CALL PresenterSlideShowView::removeMouseMotionListener( { ThrowIfDisposed(); maBroadcaster.removeListener( - getCppuType((Reference*)NULL), + cppu::UnoType::get(), rxListener); } @@ -538,7 +538,7 @@ void SAL_CALL PresenterSlideShowView::mousePressed (const awt::MouseEvent& rEven awt::MouseEvent aEvent (rEvent); aEvent.Source = static_cast(this); ::cppu::OInterfaceContainerHelper* pIterator - = maBroadcaster.getContainer(getCppuType((Reference*)NULL)); + = maBroadcaster.getContainer(cppu::UnoType::get()); if (pIterator != NULL) { pIterator->notifyEach(&awt::XMouseListener::mousePressed, aEvent); @@ -558,7 +558,7 @@ void SAL_CALL PresenterSlideShowView::mouseReleased (const awt::MouseEvent& rEve awt::MouseEvent aEvent (rEvent); aEvent.Source = static_cast(this); ::cppu::OInterfaceContainerHelper* pIterator - = maBroadcaster.getContainer(getCppuType((Reference*)NULL)); + = maBroadcaster.getContainer(cppu::UnoType::get()); if (pIterator != NULL) { pIterator->notifyEach(&awt::XMouseListener::mouseReleased, aEvent); @@ -571,7 +571,7 @@ void SAL_CALL PresenterSlideShowView::mouseEntered (const awt::MouseEvent& rEven awt::MouseEvent aEvent (rEvent); aEvent.Source = static_cast(this); ::cppu::OInterfaceContainerHelper* pIterator - = maBroadcaster.getContainer(getCppuType((Reference*)NULL)); + = maBroadcaster.getContainer(cppu::UnoType::get()); if (pIterator != NULL) { pIterator->notifyEach(&awt::XMouseListener::mouseEntered, aEvent); @@ -584,7 +584,7 @@ void SAL_CALL PresenterSlideShowView::mouseExited (const awt::MouseEvent& rEvent awt::MouseEvent aEvent (rEvent); aEvent.Source = static_cast(this); ::cppu::OInterfaceContainerHelper* pIterator - = maBroadcaster.getContainer(getCppuType((Reference*)NULL)); + = maBroadcaster.getContainer(cppu::UnoType::get()); if (pIterator != NULL) { pIterator->notifyEach(&awt::XMouseListener::mouseExited, aEvent); @@ -599,7 +599,7 @@ void SAL_CALL PresenterSlideShowView::mouseDragged (const awt::MouseEvent& rEven awt::MouseEvent aEvent (rEvent); aEvent.Source = static_cast(this); ::cppu::OInterfaceContainerHelper* pIterator - = maBroadcaster.getContainer(getCppuType((Reference*)NULL)); + = maBroadcaster.getContainer(cppu::UnoType::get()); if (pIterator != NULL) { pIterator->notifyEach(&awt::XMouseMotionListener::mouseDragged, aEvent); @@ -612,7 +612,7 @@ void SAL_CALL PresenterSlideShowView::mouseMoved (const awt::MouseEvent& rEvent) awt::MouseEvent aEvent (rEvent); aEvent.Source = static_cast(this); ::cppu::OInterfaceContainerHelper* pIterator - = maBroadcaster.getContainer(getCppuType((Reference*)NULL)); + = maBroadcaster.getContainer(cppu::UnoType::get()); if (pIterator != NULL) { pIterator->notifyEach(&awt::XMouseMotionListener::mouseMoved, aEvent); @@ -811,7 +811,7 @@ void PresenterSlideShowView::PaintInnerWindow (const awt::PaintEvent& rEvent) awt::PaintEvent aEvent (rEvent); aEvent.Source = static_cast(this); ::cppu::OInterfaceContainerHelper* pIterator - = maBroadcaster.getContainer(getCppuType((Reference*)NULL)); + = maBroadcaster.getContainer(cppu::UnoType::get()); if (pIterator != NULL) { pIterator->notifyEach(&awt::XPaintListener::windowPaint, aEvent); @@ -920,7 +920,7 @@ void PresenterSlideShowView::Resize (void) // window has changed. lang::EventObject aEvent (static_cast(this)); ::cppu::OInterfaceContainerHelper* pIterator - = maBroadcaster.getContainer(getCppuType((Reference*)NULL)); + = maBroadcaster.getContainer(cppu::UnoType::get()); if (pIterator != NULL) { pIterator->notifyEach(&util::XModifyListener::modified, aEvent); -- cgit