From ed43570bc2bdfe4fed34de2eee8ff0c80b9299ed Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 27 Mar 2019 08:51:49 +0100 Subject: [PATCH] loplugin:unoquery (clang-cl) Change-Id: If66b07c8e9097698ba9ed774e04ef5b55574ba94 Reviewed-on: https://gerrit.libreoffice.org/69790 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- avmedia/source/win/window.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/avmedia/source/win/window.cxx b/avmedia/source/win/window.cxx index dcc13eae7421..44dfb7b239ac 100644 --- a/avmedia/source/win/window.cxx +++ b/avmedia/source/win/window.cxx @@ -431,7 +431,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 )->mousePressed( rEvt ); + uno::Reference< awt::XMouseListener >( aIter.next(), uno::UNO_QUERY_THROW )->mousePressed( rEvt ); } } @@ -444,7 +444,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 )->mouseReleased( rEvt ); + uno::Reference< awt::XMouseListener >( aIter.next(), uno::UNO_QUERY_THROW )->mouseReleased( rEvt ); } } @@ -457,7 +457,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 )->mouseMoved( rEvt ); + uno::Reference< awt::XMouseMotionListener >( aIter.next(), uno::UNO_QUERY_THROW )->mouseMoved( rEvt ); } } @@ -470,7 +470,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 )->focusGained( rEvt ); + uno::Reference< awt::XFocusListener >( aIter.next(), uno::UNO_QUERY_THROW )->focusGained( rEvt ); } }