From b09b5f8f7cfd2d7f3125dab93ebe996c160e1e0c Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Thu, 22 May 2014 23:19:05 +0200 Subject: Prefer cppu::UnoType::get() to ::getCppuType((T*)0) part19 Change-Id: Iab50c52a132c90389992ef68c2d31df95a193ab9 --- animations/source/animcore/animcore.cxx | 40 ++++++++++++++++----------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'animations') diff --git a/animations/source/animcore/animcore.cxx b/animations/source/animcore/animcore.cxx index 6210f775c73c..b77675d22fbc 100644 --- a/animations/source/animcore/animcore.cxx +++ b/animations/source/animcore/animcore.cxx @@ -663,48 +663,48 @@ void AnimationNode::initTypeProvider( sal_Int16 nNodeType ) throw() Type * pTypeAr = types->getArray(); sal_Int32 nPos = 0; - pTypeAr[nPos++] = ::getCppuType( (const Reference< XWeak > *)0 ); - pTypeAr[nPos++] = ::getCppuType( (const Reference< XChild > *)0 ); - pTypeAr[nPos++] = ::getCppuType( (const Reference< XCloneable > *)0 ); - pTypeAr[nPos++] = ::getCppuType( (const Reference< XTypeProvider > *)0 ); - pTypeAr[nPos++] = ::getCppuType( (const Reference< XServiceInfo > *)0 ); - pTypeAr[nPos++] = ::getCppuType( (const Reference< XUnoTunnel > *)0 ); - pTypeAr[nPos++] = ::getCppuType( (const Reference< XChangesNotifier> *)0 ); + pTypeAr[nPos++] = cppu::UnoType::get(); + pTypeAr[nPos++] = cppu::UnoType::get(); + pTypeAr[nPos++] = cppu::UnoType::get(); + pTypeAr[nPos++] = cppu::UnoType::get(); + pTypeAr[nPos++] = cppu::UnoType::get(); + pTypeAr[nPos++] = cppu::UnoType::get(); + pTypeAr[nPos++] = cppu::UnoType::get(); switch( nNodeType ) { case AnimationNodeType::PAR: case AnimationNodeType::SEQ: - pTypeAr[nPos++] = ::getCppuType( (const Reference< XTimeContainer > *)0 ); - pTypeAr[nPos++] = ::getCppuType( (const Reference< XEnumerationAccess > *)0 ); + pTypeAr[nPos++] = cppu::UnoType::get(); + pTypeAr[nPos++] = cppu::UnoType::get(); break; case AnimationNodeType::ITERATE: - pTypeAr[nPos++] = ::getCppuType( (const Reference< XIterateContainer > *)0 ); - pTypeAr[nPos++] = ::getCppuType( (const Reference< XEnumerationAccess > *)0 ); + pTypeAr[nPos++] = cppu::UnoType::get(); + pTypeAr[nPos++] = cppu::UnoType::get(); break; case AnimationNodeType::ANIMATE: - pTypeAr[nPos++] = ::getCppuType( (const Reference< XAnimate > *)0 ); + pTypeAr[nPos++] = cppu::UnoType::get(); break; case AnimationNodeType::ANIMATEMOTION: - pTypeAr[nPos++] = ::getCppuType( (const Reference< XAnimateMotion > *)0 ); + pTypeAr[nPos++] = cppu::UnoType::get(); break; case AnimationNodeType::ANIMATECOLOR: - pTypeAr[nPos++] = ::getCppuType( (const Reference< XAnimateColor > *)0 ); + pTypeAr[nPos++] = cppu::UnoType::get(); break; case AnimationNodeType::ANIMATETRANSFORM: - pTypeAr[nPos++] = ::getCppuType( (const Reference< XAnimateTransform > *)0 ); + pTypeAr[nPos++] = cppu::UnoType::get(); break; case AnimationNodeType::SET: - pTypeAr[nPos++] = ::getCppuType( (const Reference< XAnimateSet > *)0 ); + pTypeAr[nPos++] = cppu::UnoType::get(); break; case AnimationNodeType::TRANSITIONFILTER: - pTypeAr[nPos++] = ::getCppuType( (const Reference< XTransitionFilter > *)0 ); + pTypeAr[nPos++] = cppu::UnoType::get(); break; case AnimationNodeType::AUDIO: - pTypeAr[nPos++] = ::getCppuType( (const Reference< XAudio > *)0 ); + pTypeAr[nPos++] = cppu::UnoType::get(); break; case AnimationNodeType::COMMAND: - pTypeAr[nPos++] = ::getCppuType( ( const Reference< XCommand > *)0 ); + pTypeAr[nPos++] = cppu::UnoType::get(); break; } mpTypes[nNodeType] = types; @@ -1788,7 +1788,7 @@ void SAL_CALL AnimationNode::setParameter( const Any& _parameter ) throw (Runtim // XElementAccess Type SAL_CALL AnimationNode::getElementType() throw (RuntimeException, std::exception) { - return ::getCppuType((const Reference< XAnimationNode >*)0); + return cppu::UnoType::get(); } -- cgit