diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-04-01 08:38:16 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-04-01 08:38:16 +0200 |
commit | ead3062336673c449a70ff41895a5cd5e087883f (patch) | |
tree | febff3626561455fe5a0c52cf5c0a2922626d11a /cppuhelper/source/propshlp.cxx | |
parent | bfcdcdb63a9f7800629e3143b52f4eed1b7b0b4f (diff) |
Replace remaining getCppuType et al with cppu::UnoType
Change-Id: I620bf5d46c19f0182e822265eadf8eb11001855e
Diffstat (limited to 'cppuhelper/source/propshlp.cxx')
-rw-r--r-- | cppuhelper/source/propshlp.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cppuhelper/source/propshlp.cxx b/cppuhelper/source/propshlp.cxx index 20be194b4b45..f2835f454112 100644 --- a/cppuhelper/source/propshlp.cxx +++ b/cppuhelper/source/propshlp.cxx @@ -44,15 +44,15 @@ IPropertyArrayHelper::~IPropertyArrayHelper() inline const ::com::sun::star::uno::Type & getPropertyTypeIdentifier( ) { - return ::getCppuType( (Reference< XPropertyChangeListener > *)0 ); + return cppu::UnoType<XPropertyChangeListener>::get(); } inline const ::com::sun::star::uno::Type & getPropertiesTypeIdentifier() { - return ::getCppuType( (Reference< XPropertiesChangeListener > *)0 ); + return cppu::UnoType<XPropertiesChangeListener>::get(); } inline const ::com::sun::star::uno::Type & getVetoableTypeIdentifier() { - return ::getCppuType( (Reference< XVetoableChangeListener > *)0 ); + return cppu::UnoType<XVetoableChangeListener>::get(); } extern "C" { @@ -938,7 +938,7 @@ void OPropertySetHelper::addPropertiesChangeListener( const Reference < XPropertiesChangeListener > & rListener ) throw(::com::sun::star::uno::RuntimeException, std::exception) { - rBHelper.addListener( getCppuType(&rListener) , rListener ); + rBHelper.addListener( cppu::UnoType<decltype(rListener)>::get(), rListener ); } // XMultiPropertySet @@ -946,7 +946,7 @@ void OPropertySetHelper::removePropertiesChangeListener( const Reference < XPropertiesChangeListener > & rListener ) throw(::com::sun::star::uno::RuntimeException, std::exception) { - rBHelper.removeListener( getCppuType(&rListener) , rListener ); + rBHelper.removeListener( cppu::UnoType<decltype(rListener)>::get(), rListener ); } // XMultiPropertySet |