summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
Diffstat (limited to 'ucb')
-rw-r--r--ucb/workben/ucb/ucbdemo.cxx12
1 files changed, 4 insertions, 8 deletions
diff --git a/ucb/workben/ucb/ucbdemo.cxx b/ucb/workben/ucb/ucbdemo.cxx
index 00f44655aa75..d24d8e61b1f9 100644
--- a/ucb/workben/ucb/ucbdemo.cxx
+++ b/ucb/workben/ucb/ucbdemo.cxx
@@ -650,10 +650,8 @@ uno::Any UcbCommandProcessor::executeCommand( const rtl::OUString& rName,
if (m_rUCB.getServiceFactory().is())
xInteractionHandler
= uno::Reference< task::XInteractionHandler >(
- m_rUCB.getServiceFactory()->
- createInstance(
- rtl::OUString( "com.sun.star.task.InteractionHandler")),
- uno::UNO_QUERY);
+ task::InteractionHandler::create(m_rUCB.getServiceFactory()),
+ uno::UNO_QUERY_THROW);
uno::Reference< ucb::XProgressHandler >
xProgressHandler(new ProgressHandler(m_rUCB));
uno::Reference< ucb::XCommandEnvironment > xEnv(
@@ -1308,10 +1306,8 @@ void UcbContent::transfer( const rtl::OUString& rSourceURL, sal_Bool bMove )
if (m_rUCB.getServiceFactory().is())
xInteractionHandler
= uno::Reference< task::XInteractionHandler >(
- m_rUCB.getServiceFactory()->
- createInstance(
- rtl::OUString( "com.sun.star.task.InteractionHandler")),
- uno::UNO_QUERY);
+ task::InteractionHandler::createDefault(comphelper::getComponentContext(m_rUCB.getServiceFactory())),
+ uno::UNO_QUERY_THROW);
uno::Reference< ucb::XProgressHandler > xProgressHandler(
new ProgressHandler(m_rUCB));
uno::Reference< ucb::XCommandEnvironment > xEnv(