diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2014-05-23 22:11:27 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2014-05-23 22:11:52 +0200 |
commit | ac76cc7e605b1bc9c0ff8e24d0b9995a8247074e (patch) | |
tree | 797df8cc9387fa70a0c09e574f49714ce4dc6710 /io | |
parent | 3191d7d1302dbde2445b9f300b3eb853120ede65 (diff) |
Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part20
Change-Id: If87cdfb2c605254f6d69baa4ca5aec09091caa68
Diffstat (limited to 'io')
-rw-r--r-- | io/test/stm/datatest.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/io/test/stm/datatest.cxx b/io/test/stm/datatest.cxx index 0c4b2bed7f16..a5d3b79b19a6 100644 --- a/io/test/stm/datatest.cxx +++ b/io/test/stm/datatest.cxx @@ -484,7 +484,7 @@ void MyPersistObject::setPropertyValue( aValue >>= m_s; } else if( aPropertyName.equalsAscii("object") ) { - if( aValue.getValueType() == getCppuType( (Reference< XPersistObject> *)0 ) ) + if( aValue.getValueType() == cppu::UnoType<XPersistObject>::get()) { aValue >>= m_ref; } @@ -858,9 +858,9 @@ sal_Bool compareMyPropertySet( Reference< XPropertySet > &r1 , Reference < XProp Any o1 = r1->getPropertyValue("object"); Any o2 = r2->getPropertyValue("object"); - if( o1.getValueType() == getCppuType( (Reference<XPersistObject>*)0 ) ) { + if( o1.getValueType() == cppu::UnoType<XPersistObject>::get()) { - if( o2.getValueType() == getCppuType( (Reference<XPersistObject>*)0 ) ) { + if( o2.getValueType() == cppu::UnoType<XPersistObject>::get()) { Reference < XPersistObject > rPersist1; Reference < XPersistObject > rPersist2; o1 >>= rPersist1; @@ -879,7 +879,7 @@ sal_Bool compareMyPropertySet( Reference< XPropertySet > &r1 , Reference < XProp if( ! b ) fprintf( stderr, "compareMyPropertySet: 9\n" ); } else { - if( o2.getValueType() == getCppuType( (Reference<XPersistObject>*)0 ) ) { + if( o2.getValueType() == cppu::UnoType<XPersistObject>::get()) { b = sal_False; } if( ! b ) fprintf( stderr, "compareMyPropertySet: 10\n" ); |