summaryrefslogtreecommitdiff
path: root/cui/source/dialogs/about.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 /cui/source/dialogs/about.cxx
parent7dd6c0a8372810f48e6bee35a11ac4ad0432640b (diff)
fdo#46808, Adapt system::SystemShellExecute UNO service to new style
Change-Id: Ib298b3219c3e89dd35bce0974846ed4888ed941e
Diffstat (limited to 'cui/source/dialogs/about.cxx')
-rw-r--r--cui/source/dialogs/about.cxx10
1 files changed, 4 insertions, 6 deletions
diff --git a/cui/source/dialogs/about.cxx b/cui/source/dialogs/about.cxx
index e25c72984213..9d5b4f1f19af 100644
--- a/cui/source/dialogs/about.cxx
+++ b/cui/source/dialogs/about.cxx
@@ -39,7 +39,7 @@
#include <svtools/langhelp.hxx>
#include "com/sun/star/system/SystemShellExecuteFlags.hpp"
-#include "com/sun/star/system/XSystemShellExecute.hpp"
+#include "com/sun/star/system/SystemShellExecute.hpp"
#include <comphelper/processfactory.hxx>
#include "comphelper/anytostring.hxx"
#include "cppuhelper/exc_hlp.hxx"
@@ -133,11 +133,9 @@ IMPL_LINK( AboutDialog, HandleClick, PushButton*, pButton )
return 1;
try
{
- Reference< com::sun::star::system::XSystemShellExecute > xSystemShellExecute(
- ::comphelper::getProcessServiceFactory()->createInstance(
- DEFINE_CONST_UNICODE("com.sun.star.system.SystemShellExecute") ), UNO_QUERY_THROW );
- xSystemShellExecute->execute( sURL, rtl::OUString(),
- com::sun::star::system::SystemShellExecuteFlags::URIS_ONLY );
+ Reference< system::XSystemShellExecute > xSystemShellExecute(
+ system::SystemShellExecute::create(::comphelper::getProcessComponentContext() ) );
+ xSystemShellExecute->execute( sURL, rtl::OUString(), system::SystemShellExecuteFlags::URIS_ONLY );
}
catch (const Exception&)
{