summaryrefslogtreecommitdiff
path: root/UnoControls/source/base/multiplexer.cxx
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2014-05-23 22:11:27 +0200
committerJulien Nabet <serval2412@yahoo.fr>2014-05-23 22:11:52 +0200
commitac76cc7e605b1bc9c0ff8e24d0b9995a8247074e (patch)
tree797df8cc9387fa70a0c09e574f49714ce4dc6710 /UnoControls/source/base/multiplexer.cxx
parent3191d7d1302dbde2445b9f300b3eb853120ede65 (diff)
Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part20
Change-Id: If87cdfb2c605254f6d69baa4ca5aec09091caa68
Diffstat (limited to 'UnoControls/source/base/multiplexer.cxx')
-rw-r--r--UnoControls/source/base/multiplexer.cxx28
1 files changed, 14 insertions, 14 deletions
diff --git a/UnoControls/source/base/multiplexer.cxx b/UnoControls/source/base/multiplexer.cxx
index 8ddaa4c22d2e..86e551ad3673 100644
--- a/UnoControls/source/base/multiplexer.cxx
+++ b/UnoControls/source/base/multiplexer.cxx
@@ -392,19 +392,19 @@ void OMRCListenerMultiplexerHelper::impl_adviseToPeer( const Reference< XWind
const Type& aType )
{
// add a listener to the source (peer)
- if( aType == ::getCppuType((const Reference< XWindowListener >*)0) )
+ if( aType == cppu::UnoType<XWindowListener>::get())
xPeer->addWindowListener( this );
- else if( aType == ::getCppuType((const Reference< XKeyListener >*)0) )
+ else if( aType == cppu::UnoType<XKeyListener>::get())
xPeer->addKeyListener( this );
- else if( aType == ::getCppuType((const Reference< XFocusListener >*)0) )
+ else if( aType == cppu::UnoType<XFocusListener>::get())
xPeer->addFocusListener( this );
- else if( aType == ::getCppuType((const Reference< XMouseListener >*)0) )
+ else if( aType == cppu::UnoType<XMouseListener>::get())
xPeer->addMouseListener( this );
- else if( aType == ::getCppuType((const Reference< XMouseMotionListener >*)0) )
+ else if( aType == cppu::UnoType<XMouseMotionListener>::get())
xPeer->addMouseMotionListener( this );
- else if( aType == ::getCppuType((const Reference< XPaintListener >*)0) )
+ else if( aType == cppu::UnoType<XPaintListener>::get())
xPeer->addPaintListener( this );
- else if( aType == ::getCppuType((const Reference< XTopWindowListener >*)0) )
+ else if( aType == cppu::UnoType<XTopWindowListener>::get())
{
Reference< XTopWindow > xTop( xPeer, UNO_QUERY );
if( xTop.is() )
@@ -422,19 +422,19 @@ void OMRCListenerMultiplexerHelper::impl_unadviseFromPeer( const Reference< X
const Type& aType )
{
// the last listener is removed, remove the listener from the source (peer)
- if( aType == ::getCppuType((const Reference< XWindowListener >*)0) )
+ if( aType == cppu::UnoType<XWindowListener>::get())
xPeer->removeWindowListener( this );
- else if( aType == ::getCppuType((const Reference< XKeyListener >*)0) )
+ else if( aType == cppu::UnoType<XKeyListener>::get())
xPeer->removeKeyListener( this );
- else if( aType == ::getCppuType((const Reference< XFocusListener >*)0) )
+ else if( aType == cppu::UnoType<XFocusListener>::get())
xPeer->removeFocusListener( this );
- else if( aType == ::getCppuType((const Reference< XMouseListener >*)0) )
+ else if( aType == cppu::UnoType<XMouseListener>::get())
xPeer->removeMouseListener( this );
- else if( aType == ::getCppuType((const Reference< XMouseMotionListener >*)0) )
+ else if( aType == cppu::UnoType<XMouseMotionListener>::get())
xPeer->removeMouseMotionListener( this );
- else if( aType == ::getCppuType((const Reference< XPaintListener >*)0) )
+ else if( aType == cppu::UnoType<XPaintListener>::get())
xPeer->removePaintListener( this );
- else if( aType == ::getCppuType((const Reference< XTopWindowListener >*)0) )
+ else if( aType == cppu::UnoType<XTopWindowListener>::get())
{
Reference< XTopWindow > xTop( xPeer, UNO_QUERY );
if( xTop.is() )