diff options
author | sb <sb@openoffice.org> | 2010-05-14 13:50:22 +0200 |
---|---|---|
committer | sb <sb@openoffice.org> | 2010-05-14 13:50:22 +0200 |
commit | 88d1e25d5c61d1d4ef12f0ac397db3c8b399564c (patch) | |
tree | 2d2b3c400eff3ba6eef398db04f5fcdba4ee33b0 /smoketestoo_native | |
parent | c170fae47342a76bc8b86dcfef750a707fac617b (diff) |
sb123: #i111598# OfficeConnection getFactory -> getComponentContext
Diffstat (limited to 'smoketestoo_native')
-rw-r--r-- | smoketestoo_native/smoketest.cxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/smoketestoo_native/smoketest.cxx b/smoketestoo_native/smoketest.cxx index e2cb51127f47..57018f56a3bd 100644 --- a/smoketestoo_native/smoketest.cxx +++ b/smoketestoo_native/smoketest.cxx @@ -141,10 +141,12 @@ void Test::test() { css::uno::Reference< css::frame::XController >( css::uno::Reference< css::frame::XModel >( css::uno::Reference< css::frame::XComponentLoader >( - connection_.getFactory()->createInstance( - rtl::OUString( - RTL_CONSTASCII_USTRINGPARAM( - "com.sun.star.frame.Desktop"))), + (connection_.getComponentContext()-> + getServiceManager()->createInstanceWithContext( + rtl::OUString( + RTL_CONSTASCII_USTRINGPARAM( + "com.sun.star.frame.Desktop")), + connection_.getComponentContext())), css::uno::UNO_QUERY_THROW)->loadComponentFromURL( test::toAbsoluteFileUrl(doc), rtl::OUString( |