diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-02-14 16:10:50 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-02-15 14:18:39 +0000 |
commit | 32cb8a544d25bc2a5150cd6818f505f5d5fa3687 (patch) | |
tree | ff4c8e97592d078ffea56b7b3a169f1dffc8805f | |
parent | f2fd6a6a3051000c04b175e33f16fe863df5735c (diff) |
Some simplifications, using UNO_QUERY_THROW
Change-Id: I313b17cea20fc9dc3b617ecc41626410c0dfb127
Reviewed-on: https://gerrit.libreoffice.org/34267
Tested-by: Stephan Bergmann <sbergman@redhat.com>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
-rw-r--r-- | framework/source/services/taskcreatorsrv.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/framework/source/services/taskcreatorsrv.cxx b/framework/source/services/taskcreatorsrv.cxx index d66eff4fcb09..13c5a5679bba 100644 --- a/framework/source/services/taskcreatorsrv.cxx +++ b/framework/source/services/taskcreatorsrv.cxx @@ -250,10 +250,7 @@ css::uno::Reference< css::awt::XWindow > TaskCreatorService::implts_createContai // create a new blank container window and get access to parent container to append new created task. css::uno::Reference< css::awt::XWindowPeer > xPeer = xToolkit->createWindow( aDescriptor ); - css::uno::Reference< css::awt::XWindow > xWindow ( xPeer, css::uno::UNO_QUERY ); - if ( ! xWindow.is()) - throw css::uno::Exception("TaskCreator service was not able to create suitable frame window.", - static_cast< ::cppu::OWeakObject* >(this)); + css::uno::Reference< css::awt::XWindow > xWindow ( xPeer, css::uno::UNO_QUERY_THROW ); sal_Int32 nBackground = 0xffffffff; |