summaryrefslogtreecommitdiff
path: root/svx/source/items/customshapeitem.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-04-01 08:41:28 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-04-01 08:41:28 +0200
commit008904a75bae7a42af8fce5f2bced4d029af3094 (patch)
treee961b17f35984274d53e96eaa8a164674168edcb /svx/source/items/customshapeitem.cxx
parente81a7fd0ee95c2afbc373b26ec34d6084ee07cff (diff)
Replace remaining getCppuType et al with cppu::UnoType
Change-Id: I4791f064f223487ce57e68f8e0b1e3d74e66e868
Diffstat (limited to 'svx/source/items/customshapeitem.cxx')
-rw-r--r--svx/source/items/customshapeitem.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/svx/source/items/customshapeitem.cxx b/svx/source/items/customshapeitem.cxx
index 3af285edaefe..4b51ac9becb9 100644
--- a/svx/source/items/customshapeitem.cxx
+++ b/svx/source/items/customshapeitem.cxx
@@ -54,7 +54,7 @@ SdrCustomShapeGeometryItem::SdrCustomShapeGeometryItem( const uno::Sequence< bea
throw uno::RuntimeException(
"CustomShapeGeometry has duplicate property " + rPropVal.Name);
}
- if ( rPropVal.Value.getValueType() == ::getCppuType((const ::com::sun::star::uno::Sequence < beans::PropertyValue >*)0) )
+ if ( rPropVal.Value.getValueType() == cppu::UnoType<css::uno::Sequence < beans::PropertyValue >>::get() )
{
uno::Sequence< beans::PropertyValue > const & rPropSeq = *static_cast<uno::Sequence< beans::PropertyValue > const *>(rPropVal.Value.getValue());
for ( j = 0; j < rPropSeq.getLength(); j++ )
@@ -90,7 +90,7 @@ com::sun::star::uno::Any* SdrCustomShapeGeometryItem::GetPropertyValueByName( co
com::sun::star::uno::Any* pSeqAny = GetPropertyValueByName( rSequenceName );
if ( pSeqAny )
{
- if ( pSeqAny->getValueType() == ::getCppuType((const ::com::sun::star::uno::Sequence < beans::PropertyValue >*)0) )
+ if ( pSeqAny->getValueType() == cppu::UnoType<css::uno::Sequence < beans::PropertyValue >>::get() )
{
PropertyPairHashMap::iterator aHashIter( aPropPairHashMap.find( PropertyPair( rSequenceName, rPropName ) ) );
if ( aHashIter != aPropPairHashMap.end() )
@@ -110,7 +110,7 @@ const com::sun::star::uno::Any* SdrCustomShapeGeometryItem::GetPropertyValueByNa
const com::sun::star::uno::Any* pSeqAny = GetPropertyValueByName( rSequenceName );
if ( pSeqAny )
{
- if ( pSeqAny->getValueType() == ::getCppuType((const ::com::sun::star::uno::Sequence < beans::PropertyValue >*)0) )
+ if ( pSeqAny->getValueType() == cppu::UnoType<css::uno::Sequence < beans::PropertyValue >>::get() )
{
PropertyPairHashMap::const_iterator aHashIter( aPropPairHashMap.find( PropertyPair( rSequenceName, rPropName ) ) );
if ( aHashIter != aPropPairHashMap.end() )
@@ -130,7 +130,7 @@ void SdrCustomShapeGeometryItem::SetPropertyValue( const com::sun::star::beans::
if ( pAny )
{ // property is already available
sal_Int32 i;
- if ( pAny->getValueType() == ::getCppuType((const ::com::sun::star::uno::Sequence < beans::PropertyValue >*)0) )
+ if ( pAny->getValueType() == cppu::UnoType<css::uno::Sequence < beans::PropertyValue >>::get() )
{ // old property is a sequence->each entry has to be removed from the HashPairMap
::com::sun::star::uno::Sequence < beans::PropertyValue > const & rSecSequence =
*static_cast<css::uno::Sequence < beans::PropertyValue > const *>(pAny->getValue());
@@ -142,7 +142,7 @@ void SdrCustomShapeGeometryItem::SetPropertyValue( const com::sun::star::beans::
}
}
*pAny = rPropVal.Value;
- if ( rPropVal.Value.getValueType() == ::getCppuType((const ::com::sun::star::uno::Sequence < beans::PropertyValue >*)0) )
+ if ( rPropVal.Value.getValueType() == cppu::UnoType<css::uno::Sequence < beans::PropertyValue >>::get() )
{ // the new property is a sequence->each entry has to be inserted into the HashPairMap
::com::sun::star::uno::Sequence < beans::PropertyValue > const & rSecSequence =
*static_cast<css::uno::Sequence < beans::PropertyValue > const *>(pAny->getValue());
@@ -196,7 +196,7 @@ void SdrCustomShapeGeometryItem::SetPropertyValue( const OUString& rSequenceName
if( pSeqAny )
{
- if ( pSeqAny->getValueType() == ::getCppuType((const ::com::sun::star::uno::Sequence < beans::PropertyValue >*)0) )
+ if ( pSeqAny->getValueType() == cppu::UnoType<css::uno::Sequence < beans::PropertyValue >>::get() )
{
PropertyPairHashMap::iterator aHashIter( aPropPairHashMap.find( PropertyPair( rSequenceName, rPropVal.Name ) ) );
if ( aHashIter != aPropPairHashMap.end() )
@@ -231,7 +231,7 @@ void SdrCustomShapeGeometryItem::ClearPropertyValue( const OUString& rPropName )
com::sun::star::uno::Any* pSeqAny = &aPropSeq[ (*aHashIter).second ].Value;
if ( pSeqAny )
{
- if ( pSeqAny->getValueType() == ::getCppuType((const ::com::sun::star::uno::Sequence < beans::PropertyValue >*)0) )
+ if ( pSeqAny->getValueType() == cppu::UnoType<css::uno::Sequence < beans::PropertyValue >>::get() )
{
::com::sun::star::uno::Sequence < beans::PropertyValue > const & rSecSequence =
*static_cast<css::uno::Sequence < beans::PropertyValue > const *>(pSeqAny->getValue());