summaryrefslogtreecommitdiff
path: root/animations
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2014-05-22 23:19:05 +0200
committerJulien Nabet <serval2412@yahoo.fr>2014-05-22 23:21:18 +0200
commitb09b5f8f7cfd2d7f3125dab93ebe996c160e1e0c (patch)
treedacb87512726af1941d0c6b072d0b3626335cc4c /animations
parent87c1aa16a95dcff9247ae12a4bb5ea2d866b1772 (diff)
Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part19
Change-Id: Iab50c52a132c90389992ef68c2d31df95a193ab9
Diffstat (limited to 'animations')
-rw-r--r--animations/source/animcore/animcore.cxx40
1 files changed, 20 insertions, 20 deletions
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<XWeak>::get();
+ pTypeAr[nPos++] = cppu::UnoType<XChild>::get();
+ pTypeAr[nPos++] = cppu::UnoType<XCloneable>::get();
+ pTypeAr[nPos++] = cppu::UnoType<XTypeProvider>::get();
+ pTypeAr[nPos++] = cppu::UnoType<XServiceInfo>::get();
+ pTypeAr[nPos++] = cppu::UnoType<XUnoTunnel>::get();
+ pTypeAr[nPos++] = cppu::UnoType<XChangesNotifier>::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<XTimeContainer>::get();
+ pTypeAr[nPos++] = cppu::UnoType<XEnumerationAccess>::get();
break;
case AnimationNodeType::ITERATE:
- pTypeAr[nPos++] = ::getCppuType( (const Reference< XIterateContainer > *)0 );
- pTypeAr[nPos++] = ::getCppuType( (const Reference< XEnumerationAccess > *)0 );
+ pTypeAr[nPos++] = cppu::UnoType<XIterateContainer>::get();
+ pTypeAr[nPos++] = cppu::UnoType<XEnumerationAccess>::get();
break;
case AnimationNodeType::ANIMATE:
- pTypeAr[nPos++] = ::getCppuType( (const Reference< XAnimate > *)0 );
+ pTypeAr[nPos++] = cppu::UnoType<XAnimate>::get();
break;
case AnimationNodeType::ANIMATEMOTION:
- pTypeAr[nPos++] = ::getCppuType( (const Reference< XAnimateMotion > *)0 );
+ pTypeAr[nPos++] = cppu::UnoType<XAnimateMotion>::get();
break;
case AnimationNodeType::ANIMATECOLOR:
- pTypeAr[nPos++] = ::getCppuType( (const Reference< XAnimateColor > *)0 );
+ pTypeAr[nPos++] = cppu::UnoType<XAnimateColor>::get();
break;
case AnimationNodeType::ANIMATETRANSFORM:
- pTypeAr[nPos++] = ::getCppuType( (const Reference< XAnimateTransform > *)0 );
+ pTypeAr[nPos++] = cppu::UnoType<XAnimateTransform>::get();
break;
case AnimationNodeType::SET:
- pTypeAr[nPos++] = ::getCppuType( (const Reference< XAnimateSet > *)0 );
+ pTypeAr[nPos++] = cppu::UnoType<XAnimateSet>::get();
break;
case AnimationNodeType::TRANSITIONFILTER:
- pTypeAr[nPos++] = ::getCppuType( (const Reference< XTransitionFilter > *)0 );
+ pTypeAr[nPos++] = cppu::UnoType<XTransitionFilter>::get();
break;
case AnimationNodeType::AUDIO:
- pTypeAr[nPos++] = ::getCppuType( (const Reference< XAudio > *)0 );
+ pTypeAr[nPos++] = cppu::UnoType<XAudio>::get();
break;
case AnimationNodeType::COMMAND:
- pTypeAr[nPos++] = ::getCppuType( ( const Reference< XCommand > *)0 );
+ pTypeAr[nPos++] = cppu::UnoType<XCommand>::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<XAnimationNode>::get();
}