summaryrefslogtreecommitdiff
path: root/remotebridges
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-02-14 16:10:27 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-02-15 14:18:09 +0000
commit57c4fe05d7f3c7593198c0f82e29943d5791a470 (patch)
treeb2b501416235224cee6b5a9db3ea6a40186db043 /remotebridges
parent131503c1b1387fb1e7865b123c6161fc6709a718 (diff)
Some simplifications, using UNO_QUERY_THROW
Change-Id: I8b729ab7434ee04d55fd407cf67f54c1cb9fbca9 Reviewed-on: https://gerrit.libreoffice.org/34263 Tested-by: Stephan Bergmann <sbergman@redhat.com> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'remotebridges')
-rw-r--r--remotebridges/source/unourl_resolver/unourl_resolver.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/remotebridges/source/unourl_resolver/unourl_resolver.cxx b/remotebridges/source/unourl_resolver/unourl_resolver.cxx
index b7a208f0892e..1e80b1b688df 100644
--- a/remotebridges/source/unourl_resolver/unourl_resolver.cxx
+++ b/remotebridges/source/unourl_resolver/unourl_resolver.cxx
@@ -116,11 +116,7 @@ Reference< XInterface > ResolverImpl::resolve( const OUString & rUnoUrl )
Reference< XConnector > xConnector(
_xSMgr->createInstanceWithContext( "com.sun.star.connection.Connector", _xCtx ),
- UNO_QUERY );
-
- if (! xConnector.is())
- throw RuntimeException("no connector!" );
-
+ UNO_QUERY_THROW );
Reference< XConnection > xConnection( xConnector->connect( aConnectDescr ) );
// As soon as singletons are ready, switch to singleton !