summaryrefslogtreecommitdiffstats
path: root/svx
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
parentSome simplifications, using UNO_QUERY_THROW (diff)
downloadcore-90e6afc6e236ebe7abcc406fa9cb9d5455f0ae81.tar.gz
core-90e6afc6e236ebe7abcc406fa9cb9d5455f0ae81.zip
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')
-rw-r--r--svx/source/accessibility/AccessibleTextHelper.cxx5
-rw-r--r--svx/source/svdraw/svdoole2.cxx4
2 files changed, 2 insertions, 7 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 );
diff --git a/svx/source/svdraw/svdoole2.cxx b/svx/source/svdraw/svdoole2.cxx
index a29932740f20..34b6ec0d6e38 100644
--- a/svx/source/svdraw/svdoole2.cxx
+++ b/svx/source/svdraw/svdoole2.cxx
@@ -471,9 +471,7 @@ void SAL_CALL SdrLightEmbeddedClient_Impl::changedPlacement( const awt::Rectangl
if ( !mpObj )
throw uno::RuntimeException();
- uno::Reference< embed::XInplaceObject > xInplace( mpObj->GetObjRef(), uno::UNO_QUERY );
- if ( !xInplace.is() )
- throw uno::RuntimeException();
+ uno::Reference< embed::XInplaceObject > xInplace( mpObj->GetObjRef(), uno::UNO_QUERY_THROW );
// check if the change is at least one pixel in size
awt::Rectangle aOldRect = getPlacement();