summaryrefslogtreecommitdiff
path: root/cppuhelper
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2014-05-14 23:17:17 +0200
committerJulien Nabet <serval2412@yahoo.fr>2014-05-14 23:18:57 +0200
commitc288b17cc5a1d5051325e02a29aa40df5be6f016 (patch)
treea18b17b49cd5917c456fc2e0c1697fdbbb273195 /cppuhelper
parent67f85d7419a475c1e10b6b1d829bb0c575a39fbf (diff)
Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part12
Change-Id: I7c514b7a1d86f52d77672b826b1f08b825fd7aa7
Diffstat (limited to 'cppuhelper')
-rw-r--r--cppuhelper/source/propertysetmixin.cxx10
1 files changed, 3 insertions, 7 deletions
diff --git a/cppuhelper/source/propertysetmixin.cxx b/cppuhelper/source/propertysetmixin.cxx
index cea90f5dc554..51984dbe0244 100644
--- a/cppuhelper/source/propertysetmixin.cxx
+++ b/cppuhelper/source/propertysetmixin.cxx
@@ -537,17 +537,14 @@ void PropertySetMixinImpl::Impl::setProperty(
// the expected semantics); it might also be passed through from lower
// layers.
if (e.TargetException.isExtractableTo(
- getCppuType(
- static_cast< css::beans::UnknownPropertyException * >(0)))
+ cppu::UnoType<css::beans::UnknownPropertyException>::get())
&& ((i->second.property.Attributes
& css::beans::PropertyAttribute::OPTIONAL)
!= 0))
{
throw css::beans::UnknownPropertyException(name, object);
} else if (e.TargetException.isExtractableTo(
- getCppuType(
- static_cast< css::beans::PropertyVetoException * >(
- 0)))
+ cppu::UnoType<css::beans::PropertyVetoException>::get())
&& ((i->second.property.Attributes
& css::beans::PropertyAttribute::CONSTRAINED)
!= 0))
@@ -589,8 +586,7 @@ css::uno::Any PropertySetMixinImpl::Impl::getProperty(
// the expected semantics); it might also be passed through from lower
// layers.
if (e.TargetException.isExtractableTo(
- getCppuType(
- static_cast< css::beans::UnknownPropertyException * >(0)))
+ cppu::UnoType<css::beans::UnknownPropertyException>::get())
&& ((i->second.property.Attributes
& css::beans::PropertyAttribute::OPTIONAL)
!= 0))