diff options
author | Noel Grandin <noel@peralex.com> | 2013-06-06 16:38:03 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-06-10 10:20:44 +0200 |
commit | 9db162b6048284ae43dd0be45694ade2d0800bd7 (patch) | |
tree | af9f8b96f36c3d9965e0e089f7fd11e6b770bea1 /cpputools | |
parent | 34e5e9c650ef8653b12d16a1d5de535b5f5b3ead (diff) |
fdo#46808, Use service constructor for connection::Acceptor
Change-Id: I0e69e43b5e6c6907447d6a8c23c0579b88ceb9a3
Diffstat (limited to 'cpputools')
-rw-r--r-- | cpputools/source/unoexe/unoexe.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/cpputools/source/unoexe/unoexe.cxx b/cpputools/source/unoexe/unoexe.cxx index 073a9751522c..54be5c8038e9 100644 --- a/cpputools/source/unoexe/unoexe.cxx +++ b/cpputools/source/unoexe/unoexe.cxx @@ -43,7 +43,7 @@ #include <com/sun/star/container/XSet.hpp> #include <com/sun/star/loader/XImplementationLoader.hpp> #include <com/sun/star/registry/XRegistryKey.hpp> -#include <com/sun/star/connection/XAcceptor.hpp> +#include <com/sun/star/connection/Acceptor.hpp> #include <com/sun/star/connection/XConnection.hpp> #include <com/sun/star/bridge/XBridgeFactory.hpp> #include <com/sun/star/bridge/XBridge.hpp> @@ -547,10 +547,7 @@ SAL_IMPLEMENT_MAIN() OUString aConnectDescr( aUnoUrl.getToken( 0, ';', nIndex ).copy( 4 ) ); // uno:CONNECTDESCR;iiop;InstanceName OUString aInstanceName( aUnoUrl.getToken( 1, ';', nIndex ) ); - Reference< XAcceptor > xAcceptor; - createInstance( - xAcceptor, xContext, - OUString("com.sun.star.connection.Acceptor") ); + Reference< XAcceptor > xAcceptor = Acceptor::create(xContext); // init params Sequence< Any > aInitParams( aParams.getLength() ); |