From bc00717bb7a2b48885ca356fb0a966acbe72dca9 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 29 Aug 2012 07:45:05 +0200 Subject: fdo#46808, Adapt system::SystemShellExecute UNO service to new style Change-Id: Ib298b3219c3e89dd35bce0974846ed4888ed941e --- framework/source/services/backingwindow.cxx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'framework/source') diff --git a/framework/source/services/backingwindow.cxx b/framework/source/services/backingwindow.cxx index 019619e773e3..560330c1abae 100644 --- a/framework/source/services/backingwindow.cxx +++ b/framework/source/services/backingwindow.cxx @@ -62,7 +62,7 @@ #include "com/sun/star/lang/XMultiServiceFactory.hpp" #include "com/sun/star/container/XNameAccess.hpp" -#include "com/sun/star/system/XSystemShellExecute.hpp" +#include "com/sun/star/system/SystemShellExecute.hpp" #include "com/sun/star/system/SystemShellExecuteFlags.hpp" #include "com/sun/star/task/XJobExecutor.hpp" #include "com/sun/star/util/XStringWidth.hpp" @@ -877,10 +877,8 @@ IMPL_LINK_NOARG(BackingWindow, ToolboxHdl) sURL = value.get (); localizeWebserviceURI(sURL); - Reference< com::sun::star::system::XSystemShellExecute > xSystemShellExecute( - comphelper::getProcessServiceFactory()->createInstance( - rtl::OUString( "com.sun.star.system.SystemShellExecute" ) ), - UNO_QUERY_THROW); + Reference< system::XSystemShellExecute > xSystemShellExecute( + system::SystemShellExecute::create(comphelper::getProcessComponentContext())); //throws css::lang::IllegalArgumentException, css::system::SystemShellExecuteException xSystemShellExecute->execute( sURL, rtl::OUString(), com::sun::star::system::SystemShellExecuteFlags::URIS_ONLY); } -- cgit