diff options
author | Rüdiger Timm <rt@openoffice.org> | 2004-07-23 13:50:14 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2004-07-23 13:50:14 +0000 |
commit | 8dc9d3f3fb205870e9778833513967c89a02eac5 (patch) | |
tree | b3837eb7ae173ede83c62e1613fb9314fc196f38 /bridges | |
parent | 6f65dea04cbccd9f615890d89f4356e9c9186366 (diff) |
INTEGRATION: CWS sb20 (1.3.62); FILE MERGED
2004/07/09 11:39:24 sb 1.3.62.1: #i29741# Retrofitted existing services as single-interface--based ones.
Diffstat (limited to 'bridges')
-rw-r--r-- | bridges/test/java_uno/acquire/testacquire.cxx | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/bridges/test/java_uno/acquire/testacquire.cxx b/bridges/test/java_uno/acquire/testacquire.cxx index 9cd5bc5ee506..507f7b84f1f8 100644 --- a/bridges/test/java_uno/acquire/testacquire.cxx +++ b/bridges/test/java_uno/acquire/testacquire.cxx @@ -2,9 +2,9 @@ * * $RCSfile: testacquire.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: hr $ $Date: 2003-08-13 17:21:45 $ + * last change: $Author: rt $ $Date: 2004-07-23 14:50:14 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -59,6 +59,7 @@ * ************************************************************************/ +#include "com/sun/star/bridge/UnoUrlResolver.hpp" #include "com/sun/star/bridge/XUnoUrlResolver.hpp" #include "com/sun/star/lang/XMain.hpp" #include "com/sun/star/lang/XServiceInfo.hpp" @@ -390,14 +391,9 @@ sal_Int32 Service::run(css::uno::Sequence< rtl::OUString > const & arguments) throw (css::uno::RuntimeException) { // - arguments[0] must be the UNO URL to connect to: - css::uno::Reference< css::bridge::XUnoUrlResolver > resolver( - m_context->getServiceManager()->createInstanceWithContext( - rtl::OUString::createFromAscii( - "com.sun.star.bridge.UnoUrlResolver"), - m_context), - css::uno::UNO_QUERY_THROW); css::uno::Reference< XTest > test( - resolver->resolve(arguments[0]), css::uno::UNO_QUERY_THROW); + css::bridge::UnoUrlResolver::create(m_context)->resolve(arguments[0]), + css::uno::UNO_QUERY_THROW); { WaitCondition c; |