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 /svx | |
parent | Remove some unnecessary includes from the IDL files (diff) | |
download | core-bc00717bb7a2b48885ca356fb0a966acbe72dca9.tar.gz core-bc00717bb7a2b48885ca356fb0a966acbe72dca9.zip |
fdo#46808, Adapt system::SystemShellExecute UNO service to new style
Change-Id: Ib298b3219c3e89dd35bce0974846ed4888ed941e
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/core/extedit.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/svx/source/core/extedit.cxx b/svx/source/core/extedit.cxx index 29cabefa5c40..52d6f57fce03 100644 --- a/svx/source/core/extedit.cxx +++ b/svx/source/core/extedit.cxx @@ -38,7 +38,7 @@ #include <vcl/graph.hxx> #include <vcl/cvtgrf.hxx> -#include "com/sun/star/system/XSystemShellExecute.hpp" +#include "com/sun/star/system/SystemShellExecute.hpp" #include "com/sun/star/system/SystemShellExecuteFlags.hpp" #include <comphelper/processfactory.hxx> @@ -89,9 +89,8 @@ void ExternalToolEdit::threadWorker(void* pThreadData) // getting changed Application::PostUserEvent( LINK( NULL, ExternalToolEdit, StartListeningEvent ), pThreadData); - uno::Reference< com::sun::star::system::XSystemShellExecute > xSystemShellExecute( - ::comphelper::getProcessServiceFactory()->createInstance( - DEFINE_CONST_UNICODE("com.sun.star.system.SystemShellExecute") ), uno::UNO_QUERY_THROW ); + uno::Reference< system::XSystemShellExecute > xSystemShellExecute( + system::SystemShellExecute::create(::comphelper::getProcessComponentContext() ) ); xSystemShellExecute->execute( pData->m_aFileName, rtl::OUString(), com::sun::star::system::SystemShellExecuteFlags::URIS_ONLY ); } |