summaryrefslogtreecommitdiff
path: root/svx/source/accessibility
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-02-14 16:09:57 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-02-15 14:17:17 +0000
commit90e6afc6e236ebe7abcc406fa9cb9d5455f0ae81 (patch)
tree238a212e2d23c0088de0050d6ff5da548053293d /svx/source/accessibility
parent5ed0dc584160b74eca08f7f8ba1e15ef40d163df (diff)
Some simplifications, using UNO_QUERY_THROW
Change-Id: I6244b12a85a6cbd8c5945a0b4965c070eed15ed4 Reviewed-on: https://gerrit.libreoffice.org/34256 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'svx/source/accessibility')
-rw-r--r--svx/source/accessibility/AccessibleTextHelper.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/svx/source/accessibility/AccessibleTextHelper.cxx b/svx/source/accessibility/AccessibleTextHelper.cxx
index c4c05e8b3ceb..c30ec415c6c7 100644
--- a/svx/source/accessibility/AccessibleTextHelper.cxx
+++ b/svx/source/accessibility/AccessibleTextHelper.cxx
@@ -1566,10 +1566,7 @@ namespace accessibility
if( !xFrontEndContext.is() )
throw uno::RuntimeException("AccessibleTextHelper_Impl::getAccessibleAt: frontend invalid", mxFrontEnd );
- uno::Reference< XAccessibleComponent > xFrontEndComponent( xFrontEndContext, uno::UNO_QUERY );
-
- if( !xFrontEndComponent.is() )
- throw uno::RuntimeException("AccessibleTextHelper_Impl::getAccessibleAt: frontend is no XAccessibleComponent", mxFrontEnd );
+ uno::Reference< XAccessibleComponent > xFrontEndComponent( xFrontEndContext, uno::UNO_QUERY_THROW );
// #103862# No longer need to make given position relative
Point aPoint( _aPoint.X, _aPoint.Y );