diff options
author | Noel Grandin <noel@peralex.com> | 2012-08-29 07:45:05 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-09-03 15:55:05 +0200 |
commit | bc00717bb7a2b48885ca356fb0a966acbe72dca9 (patch) | |
tree | 3eacf7bb54893d7380789d1a2e9ffbb759da16ba /framework/source | |
parent | 7dd6c0a8372810f48e6bee35a11ac4ad0432640b (diff) |
fdo#46808, Adapt system::SystemShellExecute UNO service to new style
Change-Id: Ib298b3219c3e89dd35bce0974846ed4888ed941e
Diffstat (limited to 'framework/source')
-rw-r--r-- | framework/source/services/backingwindow.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
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<rtl::OUString> (); 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); } |