summaryrefslogtreecommitdiffstats
path: root/sfx2/source/appl/openuriexternally.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2012-08-29 07:45:05 +0200
committerStephan Bergmann <sbergman@redhat.com>2012-09-03 15:55:05 +0200
commitbc00717bb7a2b48885ca356fb0a966acbe72dca9 (patch)
tree3eacf7bb54893d7380789d1a2e9ffbb759da16ba /sfx2/source/appl/openuriexternally.cxx
parentRemove some unnecessary includes from the IDL files (diff)
downloadcore-bc00717bb7a2b48885ca356fb0a966acbe72dca9.tar.gz
core-bc00717bb7a2b48885ca356fb0a966acbe72dca9.zip
fdo#46808, Adapt system::SystemShellExecute UNO service to new style
Change-Id: Ib298b3219c3e89dd35bce0974846ed4888ed941e
Diffstat (limited to 'sfx2/source/appl/openuriexternally.cxx')
-rw-r--r--sfx2/source/appl/openuriexternally.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/sfx2/source/appl/openuriexternally.cxx b/sfx2/source/appl/openuriexternally.cxx
index 381946987844..b704b38cb649 100644
--- a/sfx2/source/appl/openuriexternally.cxx
+++ b/sfx2/source/appl/openuriexternally.cxx
@@ -30,7 +30,7 @@
#include "sal/config.h"
#include "com/sun/star/lang/IllegalArgumentException.hpp"
-#include "com/sun/star/system/XSystemShellExecute.hpp"
+#include "com/sun/star/system/SystemShellExecute.hpp"
#include "com/sun/star/system/SystemShellExecuteException.hpp"
#include "com/sun/star/system/SystemShellExecuteFlags.hpp"
#include "com/sun/star/uno/Reference.hxx"
@@ -59,11 +59,7 @@ bool sfx2::openUriExternally(
rtl::OUString const & uri, bool handleSystemShellExecuteException)
{
css::uno::Reference< css::system::XSystemShellExecute > exec(
- comphelper::getProcessServiceFactory()->createInstance(
- rtl::OUString(
- RTL_CONSTASCII_USTRINGPARAM(
- "com.sun.star.system.SystemShellExecute"))),
- css::uno::UNO_QUERY_THROW);
+ css::system::SystemShellExecute::create(comphelper::getProcessComponentContext()));
try {
exec->execute(
uri, rtl::OUString(),