summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdoole2.cxx
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/svdraw/svdoole2.cxx
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/svdraw/svdoole2.cxx')
-rw-r--r--svx/source/svdraw/svdoole2.cxx4
1 files changed, 1 insertions, 3 deletions
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();