diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2021-08-07 10:47:18 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-08-07 17:17:25 +0200 |
commit | 773a7b57fa99bdda9cde59937cd1987384ae533a (patch) | |
tree | 9909d560e9c14ccd9963ee4eb58a74f4f3ea6288 /ucbhelper/source/provider | |
parent | e20d997eb3eb5c81af907718989aba4a6f9fc950 (diff) |
no need to use UNO_QUERY here
Change-Id: I1bfe8238d7c08f27d2b21f9fe79712aba045c812
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120152
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'ucbhelper/source/provider')
-rw-r--r-- | ucbhelper/source/provider/contenthelper.cxx | 6 | ||||
-rw-r--r-- | ucbhelper/source/provider/resultset.cxx | 6 |
2 files changed, 4 insertions, 8 deletions
diff --git a/ucbhelper/source/provider/contenthelper.cxx b/ucbhelper/source/provider/contenthelper.cxx index 8ca2bfddec6a..2c64dc1968a6 100644 --- a/ucbhelper/source/provider/contenthelper.cxx +++ b/ucbhelper/source/provider/contenthelper.cxx @@ -657,10 +657,8 @@ void ContentImplHelper::notifyPropertiesChange( while ( aIter.hasMoreElements() ) { // Propagate event. - uno::Reference< beans::XPropertiesChangeListener > xListener( - aIter.next(), uno::UNO_QUERY ); - if ( xListener.is() ) - xListener->propertiesChange( evt ); + static_cast< beans::XPropertiesChangeListener* >( + aIter.next())->propertiesChange( evt ); } } diff --git a/ucbhelper/source/provider/resultset.cxx b/ucbhelper/source/provider/resultset.cxx index 3bca0b0349ea..ac9aa42556a5 100644 --- a/ucbhelper/source/provider/resultset.cxx +++ b/ucbhelper/source/provider/resultset.cxx @@ -1335,10 +1335,8 @@ void ResultSet::propertyChanged( const beans::PropertyChangeEvent& rEvt ) const cppu::OInterfaceIteratorHelper aIter( *pPropsContainer ); while ( aIter.hasMoreElements() ) { - uno::Reference< beans::XPropertyChangeListener > xListener( - aIter.next(), uno::UNO_QUERY ); - if ( xListener.is() ) - xListener->propertyChange( rEvt ); + static_cast< beans::XPropertyChangeListener* >( aIter.next() ) + ->propertyChange( rEvt ); } } } |