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 /avmedia | |
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 'avmedia')
-rw-r--r-- | avmedia/source/win/window.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/avmedia/source/win/window.cxx b/avmedia/source/win/window.cxx index a3fb5abca52c..b7aa28ba26d5 100644 --- a/avmedia/source/win/window.cxx +++ b/avmedia/source/win/window.cxx @@ -430,7 +430,7 @@ void Window::fireMousePressedEvent( const css::awt::MouseEvent& rEvt ) ::cppu::OInterfaceIteratorHelper aIter( *pContainer ); while( aIter.hasMoreElements() ) - uno::Reference< awt::XMouseListener >( aIter.next(), uno::UNO_QUERY_THROW )->mousePressed( rEvt ); + static_cast< awt::XMouseListener* >( aIter.next() )->mousePressed( rEvt ); } } @@ -443,7 +443,7 @@ void Window::fireMouseReleasedEvent( const css::awt::MouseEvent& rEvt ) ::cppu::OInterfaceIteratorHelper aIter( *pContainer ); while( aIter.hasMoreElements() ) - uno::Reference< awt::XMouseListener >( aIter.next(), uno::UNO_QUERY_THROW )->mouseReleased( rEvt ); + static_cast< awt::XMouseListener* >( aIter.next() )->mouseReleased( rEvt ); } } @@ -456,7 +456,7 @@ void Window::fireMouseMovedEvent( const css::awt::MouseEvent& rEvt ) ::cppu::OInterfaceIteratorHelper aIter( *pContainer ); while( aIter.hasMoreElements() ) - uno::Reference< awt::XMouseMotionListener >( aIter.next(), uno::UNO_QUERY_THROW )->mouseMoved( rEvt ); + static_cast< awt::XMouseMotionListener* >( aIter.next() )->mouseMoved( rEvt ); } } @@ -469,7 +469,7 @@ void Window::fireSetFocusEvent( const css::awt::FocusEvent& rEvt ) ::cppu::OInterfaceIteratorHelper aIter( *pContainer ); while( aIter.hasMoreElements() ) - uno::Reference< awt::XFocusListener >( aIter.next(), uno::UNO_QUERY_THROW )->focusGained( rEvt ); + static_cast< awt::XFocusListener* >( aIter.next() )->focusGained( rEvt ); } } |