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 /ucb/source/sorter/sortresult.cxx | |
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 'ucb/source/sorter/sortresult.cxx')
-rw-r--r-- | ucb/source/sorter/sortresult.cxx | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/ucb/source/sorter/sortresult.cxx b/ucb/source/sorter/sortresult.cxx index b32844368c38..94e6570cb864 100644 --- a/ucb/source/sorter/sortresult.cxx +++ b/ucb/source/sorter/sortresult.cxx @@ -1200,10 +1200,7 @@ void SortedResultSet::PropertyChanged( const PropertyChangeEvent& rEvt ) OInterfaceIteratorHelper aIter( *pPropsContainer ); while ( aIter.hasMoreElements() ) { - Reference< XPropertyChangeListener > xListener( - aIter.next(), UNO_QUERY ); - if ( xListener.is() ) - xListener->propertyChange( rEvt ); + static_cast< XPropertyChangeListener* >( aIter.next() )->propertyChange( rEvt ); } } @@ -1214,10 +1211,7 @@ void SortedResultSet::PropertyChanged( const PropertyChangeEvent& rEvt ) OInterfaceIteratorHelper aIter( *pPropsContainer ); while ( aIter.hasMoreElements() ) { - Reference< XPropertyChangeListener > xListener( - aIter.next(), UNO_QUERY ); - if ( xListener.is() ) - xListener->propertyChange( rEvt ); + static_cast< XPropertyChangeListener* >( aIter.next() )->propertyChange( rEvt ); } } } |