From 57c4fe05d7f3c7593198c0f82e29943d5791a470 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 14 Feb 2017 16:10:27 +0100 Subject: Some simplifications, using UNO_QUERY_THROW Change-Id: I8b729ab7434ee04d55fd407cf67f54c1cb9fbca9 Reviewed-on: https://gerrit.libreoffice.org/34263 Tested-by: Stephan Bergmann Reviewed-by: Stephan Bergmann --- remotebridges/source/unourl_resolver/unourl_resolver.cxx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'remotebridges') 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 ! -- cgit