diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2014-05-06 22:51:07 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2014-05-06 22:51:42 +0200 |
commit | db3b1dd86ed467889d595e080b00fc957eb155ff (patch) | |
tree | 75a3d77e016aae6605e97d94f71a2d3918873b68 /xmloff | |
parent | 3ed4078ad2e1bb35829b118a5067ad3a43365bbc (diff) |
Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part3
Change-Id: Ibabd6d2d5e84fe007364bd1a4182a01ea2352b7a
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/draw/animationexport.cxx | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/xmloff/source/draw/animationexport.cxx b/xmloff/source/draw/animationexport.cxx index bf8246282b18..bf1c5b13b664 100644 --- a/xmloff/source/draw/animationexport.cxx +++ b/xmloff/source/draw/animationexport.cxx @@ -1453,7 +1453,7 @@ void AnimationsExporterImpl::convertValue( XMLTokenEnum eAttributeName, OUString if( !rValue.hasValue() ) return; - if( rValue.getValueType() == ::getCppuType((const ValuePair*)0) ) + if( rValue.getValueType() == cppu::UnoType<ValuePair>::get() ) { const ValuePair* pValuePair = static_cast< const ValuePair* >( rValue.getValue() ); OUStringBuffer sTmp2; @@ -1462,7 +1462,7 @@ void AnimationsExporterImpl::convertValue( XMLTokenEnum eAttributeName, OUString convertValue( eAttributeName, sTmp2, pValuePair->Second ); sTmp.append( sTmp2.makeStringAndClear() ); } - else if( rValue.getValueType() == ::getCppuType((Sequence<Any>*)0) ) + else if( rValue.getValueType() == cppu::UnoType< Sequence<Any> >::get() ) { const Sequence<Any>* pSequence = static_cast< const Sequence<Any>* >( rValue.getValue() ); const sal_Int32 nLength = pSequence->getLength(); @@ -1497,7 +1497,7 @@ void AnimationsExporterImpl::convertValue( XMLTokenEnum eAttributeName, OUString { sTmp.append( aString ); } - else if( rValue.getValueType() == ::getCppuType((const double*)0) ) + else if( rValue.getValueType() == cppu::UnoType<double>::get() ) { sTmp.append( *(static_cast< const double* >( rValue.getValue() )) ); } @@ -1544,7 +1544,7 @@ void AnimationsExporterImpl::convertTiming( OUStringBuffer& sTmp, const Any& rVa if( !rValue.hasValue() ) return; - if( rValue.getValueType() == ::getCppuType((Sequence<Any>*)0) ) + if( rValue.getValueType() == cppu::UnoType< Sequence<Any> >::get() ) { const Sequence<Any>* pSequence = static_cast< const Sequence<Any>* >( rValue.getValue() ); const sal_Int32 nLength = pSequence->getLength(); @@ -1561,17 +1561,17 @@ void AnimationsExporterImpl::convertTiming( OUStringBuffer& sTmp, const Any& rVa sTmp.append( sTmp2.makeStringAndClear() ); } } - else if( rValue.getValueType() == ::getCppuType((const double*)0) ) + else if( rValue.getValueType() == cppu::UnoType<double>::get() ) { sTmp.append( *(static_cast< const double* >( rValue.getValue() )) ); sTmp.append( 's'); } - else if( rValue.getValueType() == ::getCppuType((const Timing*)0) ) + else if( rValue.getValueType() == cppu::UnoType<Timing>::get() ) { const Timing* pTiming = static_cast< const Timing* >( rValue.getValue() ); sTmp.append( GetXMLToken( (*pTiming == Timing_MEDIA) ? XML_MEDIA : XML_INDEFINITE ) ); } - else if( rValue.getValueType() == ::getCppuType((const Event*)0) ) + else if( rValue.getValueType() == cppu::UnoType<Event>::get() ) { OUStringBuffer sTmp2; @@ -1622,7 +1622,7 @@ void AnimationsExporterImpl::convertTarget( OUStringBuffer& sTmp, const Any& rTa { rTarget >>= xRef; } - else if( rTarget.getValueType() == ::getCppuType((const ParagraphTarget*)0) ) + else if( rTarget.getValueType() == cppu::UnoType<ParagraphTarget>::get() ) { xRef = getParagraphTarget( static_cast< const ParagraphTarget* >( rTarget.getValue() ) ); } @@ -1641,13 +1641,13 @@ void AnimationsExporterImpl::prepareValue( const Any& rValue ) if( !rValue.hasValue() ) return; - if( rValue.getValueType() == ::getCppuType((const ValuePair*)0) ) + if( rValue.getValueType() == cppu::UnoType<ValuePair>::get() ) { const ValuePair* pValuePair = static_cast< const ValuePair* >( rValue.getValue() ); prepareValue( pValuePair->First ); prepareValue( pValuePair->Second ); } - else if( rValue.getValueType() == ::getCppuType((Sequence<Any>*)0) ) + else if( rValue.getValueType() == cppu::UnoType< Sequence<Any> >::get() ) { const Sequence<Any>* pSequence = static_cast< const Sequence<Any>* >( rValue.getValue() ); const sal_Int32 nLength = pSequence->getLength(); @@ -1663,13 +1663,13 @@ void AnimationsExporterImpl::prepareValue( const Any& rValue ) if( xRef.is() ) mrExport.getInterfaceToIdentifierMapper().registerReference( xRef ); } - else if( rValue.getValueType() == ::getCppuType((const ParagraphTarget*)0) ) + else if( rValue.getValueType() == cppu::UnoType<ParagraphTarget>::get() ) { Reference< XInterface> xRef( getParagraphTarget( static_cast< const ParagraphTarget* >( rValue.getValue() ) ) ); if( xRef.is() ) mrExport.getInterfaceToIdentifierMapper().registerReference( xRef ); } - else if( rValue.getValueType() == ::getCppuType((const Event*)0) ) + else if( rValue.getValueType() == cppu::UnoType<Event>::get() ) { const Event* pEvent = static_cast< const Event* >( rValue.getValue() ); prepareValue( pEvent->Source ); |