diff options
author | Rüdiger Timm <rt@openoffice.org> | 2004-07-23 13:51:10 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2004-07-23 13:51:10 +0000 |
commit | 6602cab6b75b535d0bb5bf6b44ea0b1341c36b5e (patch) | |
tree | ee329524d2f26ae149a5055d4067393d016a5ae7 /bridges/test/java_uno | |
parent | 422f6931e91da50b2a7e4b0ab8245df02867e9b2 (diff) |
INTEGRATION: CWS sb20 (1.2.116); FILE MERGED
2004/07/09 13:29:32 sb 1.2.116.1: #i29741# Retrofitted existing services as single-interface--based ones.
Diffstat (limited to 'bridges/test/java_uno')
-rw-r--r-- | bridges/test/java_uno/equals/testequals.cxx | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/bridges/test/java_uno/equals/testequals.cxx b/bridges/test/java_uno/equals/testequals.cxx index 9e6129fd815e..3ff9bce78a47 100644 --- a/bridges/test/java_uno/equals/testequals.cxx +++ b/bridges/test/java_uno/equals/testequals.cxx @@ -2,9 +2,9 @@ * * $RCSfile: testequals.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: rt $ $Date: 2003-04-23 16:34:49 $ + * last change: $Author: rt $ $Date: 2004-07-23 14:51:10 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -61,6 +61,7 @@ #include "com/sun/star/bridge/XBridge.hpp" #include "com/sun/star/bridge/XBridgeFactory.hpp" +#include "com/sun/star/connection/Connector.hpp" #include "com/sun/star/connection/XConnection.hpp" #include "com/sun/star/connection/XConnector.hpp" #include "com/sun/star/lang/XMultiComponentFactory.hpp" @@ -148,17 +149,10 @@ void Service::connect(rtl::OUString const & rConnection, rtl::OUString const & rProtocol) throw (css::uno::Exception) { - css::uno::Reference< css::lang::XMultiComponentFactory > xFactory( - m_xContext->getServiceManager()); - css::uno::Reference< css::connection::XConnector > xConnector( - xFactory->createInstanceWithContext( - rtl::OUString::createFromAscii("com.sun.star.connection.Connector"), - m_xContext), - css::uno::UNO_QUERY); css::uno::Reference< css::connection::XConnection > xConnection( - xConnector->connect(rConnection)); + css::connection::Connector::create(m_xContext)->connect(rConnection)); css::uno::Reference< css::bridge::XBridgeFactory > xBridgeFactory( - xFactory->createInstanceWithContext( + m_xContext->getServiceManager()->createInstanceWithContext( rtl::OUString::createFromAscii("com.sun.star.bridge.BridgeFactory"), m_xContext), css::uno::UNO_QUERY); |